Class: BuckKnife::Node
Instance Attribute Summary collapse
Instance Method Summary
collapse
#_read_data, #_write_data, included
Constructor Details
#initialize(name, data) ⇒ Node
Returns a new instance of Node.
6
7
8
9
|
# File 'lib/buckknife/node.rb', line 6
def initialize(name, data)
@name = name
@data = data
end
|
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4
5
6
|
# File 'lib/buckknife/node.rb', line 4
def name
@name
end
|
Instance Method Details
#recipes ⇒ Object
18
19
20
|
# File 'lib/buckknife/node.rb', line 18
def recipes
@data["recipes"].split(' ')
end
|
#roles ⇒ Object
14
15
16
|
# File 'lib/buckknife/node.rb', line 14
def roles
@data["roles"].split(' ')
end
|
#run_list_items ⇒ Object
26
27
28
|
# File 'lib/buckknife/node.rb', line 26
def run_list_items
run_list.split(' ')
end
|