Module: PodBuilder::Actions
- Defined in:
- lib/pod_builder/actions.rb
Defined Under Namespace
Classes: Item
Class Method Summary collapse
Class Method Details
.load(hash, step) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pod_builder/actions.rb', line 6 def self.load(hash, step) actions = {} if json = hash["switch"] actions[:switch] = Item.new("switch", step, json) end if json = hash["install"] actions[:install] = Item.new("install", step, json) end if json = hash["build"] actions[:build] = Item.new("build", step, json) end return actions end |