class GeneSystem::Step
Step
is an in memory representation of a manifest step
Attributes
Public Class Methods
load_steps(steps)
click to toggle source
Loads steps from an array of steps
@param [Array] steps
@return [Array]
# File lib/gene_system/step.rb, line 14 def load_steps(steps) steps.map do |data| new(data) end end
new(data)
click to toggle source
# File lib/gene_system/step.rb, line 23 def initialize(data) @data = Hashie::Mash.new(data) @tags = [] @tags = @data.tags.split("\s") if @data.tags end
Public Instance Methods
exe()
click to toggle source
Step
execution instructions getter
@return [Hash]
# File lib/gene_system/step.rb, line 52 def exe @data.exe end
install()
click to toggle source
Installation instructions getter
@return [Array]
# File lib/gene_system/step.rb, line 61 def install exe.install end
name()
click to toggle source
prompts()
click to toggle source
Step
prompt getter
@return [Array]
# File lib/gene_system/step.rb, line 43 def prompts @data.prompts end
remove()
click to toggle source
Removal instructions getter
@return [Array]
# File lib/gene_system/step.rb, line 70 def remove exe.remove end