Class: BuckKnife::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/buckknife/environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, data, nodes) ⇒ Environment

Returns a new instance of Environment.



5
6
7
8
9
# File 'lib/buckknife/environment.rb', line 5

def initialize(name, data, nodes)
  @data  = data
  @name  = name
  @nodes = nodes
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/buckknife/environment.rb', line 3

def name
  @name
end

#nodesObject (readonly)

Returns the value of attribute nodes.



3
4
5
# File 'lib/buckknife/environment.rb', line 3

def nodes
  @nodes
end

Instance Method Details

#domain_nameObject



11
12
13
# File 'lib/buckknife/environment.rb', line 11

def domain_name
  @data['domain_name']
end