diff options
author | Tensibai <tensibai@iabis.net> | 2019-04-24 09:41:14 +0000 |
---|---|---|
committer | Tensibai <tensibai@iabis.net> | 2019-04-25 20:11:19 +0000 |
commit | d1cbc518206f7c29a53f344dd35b2d6880e0faa1 (patch) | |
tree | c8d17536a1a6b67a40eb809d359b4e48bcb3b0c0 /bin | |
parent | 5873d906942770a34f0cf0fed05973ec3240a275 (diff) | |
download | chef-zero-d1cbc518206f7c29a53f344dd35b2d6880e0faa1.tar.gz |
Initial brand refactoring
Signed-off-by: Tensibai <tensibai@iabis.net>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chef-zero | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/chef-zero b/bin/chef-zero index 023111e..0b4a99a 100755 --- a/bin/chef-zero +++ b/bin/chef-zero @@ -7,6 +7,7 @@ require "rubygems" $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))) require "chef_zero/log" +require "chef_zero/dist" require "chef_zero/version" require "chef_zero/server" require "chef_zero/data_store/raw_file_store" @@ -28,7 +29,7 @@ end options = {} OptionParser.new do |opts| - opts.banner = "Usage: chef-zero [ARGS]" + opts.banner = "Usage: #{ChefZero::Dist::CLIENT} [ARGS]" opts.on("-H", "--host HOST", "Host to bind to (default: 127.0.0.1)") do |value| options[:host] ||= [] @@ -100,7 +101,7 @@ if options[:daemon] server.start(true) else if ENV["OS"] == "Windows_NT" - abort "Daemonization is not supported on Windows. Running 'start chef-zero' will fork the process." + abort "Daemonization is not supported on Windows. Running 'start #{ChefZero::Dist::CLIENT}' will fork the process." else abort "Process.daemon requires Ruby >= 1.9" end |