summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTensibai <tensibai@iabis.net>2019-04-24 09:41:14 +0000
committerTensibai <tensibai@iabis.net>2019-04-25 20:11:19 +0000
commitd1cbc518206f7c29a53f344dd35b2d6880e0faa1 (patch)
treec8d17536a1a6b67a40eb809d359b4e48bcb3b0c0 /bin
parent5873d906942770a34f0cf0fed05973ec3240a275 (diff)
downloadchef-zero-d1cbc518206f7c29a53f344dd35b2d6880e0faa1.tar.gz
Initial brand refactoring
Signed-off-by: Tensibai <tensibai@iabis.net>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chef-zero5
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