Class: Cheffish::ChefRunData

Inherits:
Object
  • Object
show all
Extended by:
WithPattern
Defined in:
lib/cheffish/chef_run_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from WithPattern

with

Constructor Details

#initializeChefRunData



6
7
8
9
10
11
12
13
14
15
# File 'lib/cheffish/chef_run_data.rb', line 6

def initialize
  @local_servers = []
  @current_chef_server = {
    :chef_server_url => Chef::Config[:chef_server_url],
    :options => {
      :client_name => Chef::Config[:node_name],
      :signing_key_filename => Chef::Config[:client_key]
    }
  }
end

Instance Attribute Details

#local_serversObject (readonly)

Returns the value of attribute local_servers.



23
24
25
# File 'lib/cheffish/chef_run_data.rb', line 23

def local_servers
  @local_servers
end