Class: OptimisWorkflow::Commands::Base
- Inherits:
-
Object
- Object
- OptimisWorkflow::Commands::Base
- Includes:
- OptimisWorkflow::Common
- Defined in:
- lib/optimis-workflow/commands/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(args) ⇒ Base
constructor
A new instance of Base.
Methods included from OptimisWorkflow::Common
#current_dir, #mark_as_started_on_pivotal, #payload, #settings, #settings_file, #start_feature
Constructor Details
#initialize(args) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 15 16 |
# File 'lib/optimis-workflow/commands/base.rb', line 9 def initialize(args) if args[0] == "-h" || args[0] == "--help" || args[0] == "help" puts help_msg exit 0 else @args = args end end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
7 8 9 |
# File 'lib/optimis-workflow/commands/base.rb', line 7 def args @args end |
Instance Method Details
#execute! ⇒ Object
18 19 20 21 |
# File 'lib/optimis-workflow/commands/base.rb', line 18 def execute! local_stuff remote_stuff end |