Class: CommandFactory
- Inherits:
-
Object
- Object
- CommandFactory
- Defined in:
- lib/factories/command_factory.rb
Instance Method Summary collapse
- #get_commands ⇒ Object
-
#initialize(params) ⇒ CommandFactory
constructor
A new instance of CommandFactory.
Constructor Details
#initialize(params) ⇒ CommandFactory
Returns a new instance of CommandFactory.
14 15 16 |
# File 'lib/factories/command_factory.rb', line 14 def initialize(params) @params = params end |
Instance Method Details
#get_commands ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/factories/command_factory.rb', line 18 def get_commands if @params.action == ACTION_BUILD [get_build] elsif @params.action == ACTION_CEDAR get_cedar elsif @params.action == ACTION_CALABASH get_calabash end end |