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 /lib/chef_zero/server.rb | |
parent | 5873d906942770a34f0cf0fed05973ec3240a275 (diff) | |
download | chef-zero-d1cbc518206f7c29a53f344dd35b2d6880e0faa1.tar.gz |
Initial brand refactoring
Signed-off-by: Tensibai <tensibai@iabis.net>
Diffstat (limited to 'lib/chef_zero/server.rb')
-rw-r--r-- | lib/chef_zero/server.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/chef_zero/server.rb b/lib/chef_zero/server.rb index 9800913..0c60f78 100644 --- a/lib/chef_zero/server.rb +++ b/lib/chef_zero/server.rb @@ -35,6 +35,7 @@ require "chef_zero/data_store/memory_store_v2" require "chef_zero/data_store/v1_to_v2_adapter" require "chef_zero/data_store/default_facade" require "chef_zero/version" +require "chef_zero/dist.rb" require "chef_zero/endpoints/rest_list_endpoint" require "chef_zero/endpoints/authenticate_user_endpoint" @@ -231,7 +232,7 @@ module ChefZero if publish output = publish.respond_to?(:puts) ? publish : STDOUT output.puts <<-EOH.gsub(/^ {10}/, "") - >> Starting Chef Zero (v#{ChefZero::VERSION})... + >> Starting #{ChefZero::Dist::PRODUCT} (v#{ChefZero::VERSION})... EOH end @@ -248,7 +249,7 @@ module ChefZero %w{INT TERM}.each do |signal| Signal.trap(signal) do - puts "\n>> Stopping Chef Zero..." + puts "\n>> Stopping #{ChefZero::Dist::PRODUCT}..." @server.shutdown end end @@ -362,7 +363,7 @@ module ChefZero end rescue Timeout::Error if @thread - ChefZero::Log.error("Chef Zero did not stop within #{wait} seconds! Killing...") + ChefZero::Log.error("#{ChefZero::Dist::PRODUCT} did not stop within #{wait} seconds! Killing...") @thread.kill SocketlessServerMap.deregister(port) end |