Class: Hazetug::Tug::Knife

Inherits:
KnifeBase show all
Defined in:
lib/hazetug/tug/knife.rb

Constant Summary

Constants inherited from Hazetug::Tug

LOGDIR

Constants included from NetSSH::Mixin

NetSSH::Mixin::NET_SSH_OPTIONS

Instance Attribute Summary

Attributes inherited from Hazetug::Tug

#config, #options

Instance Method Summary collapse

Methods inherited from KnifeBase

#bootstrap_cleanup, #bootstrap_init, #bootstrap_options, #bootstrap_run, #bootstrap_server, #check_bootstrap_files!, #hazetug_identity, #knife

Methods inherited from Hazetug::Tug

[], #bootstrap, #tug_name

Methods included from UI::Mixin

included

Constructor Details

#initialize(config = {}) ⇒ Knife

Returns a new instance of Knife.



9
10
11
12
13
14
# File 'lib/hazetug/tug/knife.rb', line 9

def initialize(config={})
  super
  [ :chef_server_url,
    :validation_key
  ].inject(@chef_option_list, :<<)
end

Instance Method Details

#bootstrap_configObject



16
17
18
19
# File 'lib/hazetug/tug/knife.rb', line 16

def bootstrap_config
  super
  check_bootstrap_files! :validation_key, :template_file
end