Class: VagrantPlugins::ChefZero::Action::Reconfig
- Inherits:
-
Object
- Object
- VagrantPlugins::ChefZero::Action::Reconfig
- Includes:
- EnvHelpers, ServerHelpers
- Defined in:
- lib/vagrant-chef-zero/action/reconfig.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Reconfig
constructor
A new instance of Reconfig.
Methods included from ServerHelpers
#chef_zero_server_running?, #find_chef_zero_binary, #fork_process, #get_chef_zero_binary, #get_chef_zero_server_pid, #has_chef_zero_binary?, #is_a_chef_zero_server?, #kill_process, #port_open?, #start_chef_zero, #stop_chef_zero, #wait_for_server_to_start
Methods included from EnvHelpers
active_machines, #berkshelf_enabled?, #chef_client?, #chef_zero_enabled?, #get_chef_server_url, #get_fake_key_path, #get_host, #get_key_path, #get_port, #get_validation_client_name, mutex, #provisioners, #rm_knife_config, #server_info, #set_berkshelf_client_key, #set_config, #write_knife_config
Constructor Details
#initialize(app, env) ⇒ Reconfig
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/vagrant-chef-zero/action/reconfig.rb', line 10 def initialize(app, env) @app = app if chef_zero_enabled?(env) @key = get_key_path(env) set_config("@validation_key_path", @key, env) @chef_server_url = get_chef_server_url(env) set_config("@chef_server_url", @chef_server_url, env) @validation_client_name = get_validation_client_name(env) set_config("@validation_client_name", @validation_client_name, env) write_knife_config(env) end # if berkshelf_enabled?(env) # @key = get_key_path(env) # set_berkshelf_client_key(@key) # end end |
Instance Method Details
#call(env) ⇒ Object
32 33 34 |
# File 'lib/vagrant-chef-zero/action/reconfig.rb', line 32 def call(env) @app.call(env) end |