Class: OptimisWorkflow::Commands::Base

Inherits:
Object
  • Object
show all
Includes:
OptimisWorkflow::Common
Defined in:
lib/optimis-workflow/commands/base.rb

Direct Known Subclasses

FinishCommand, StartCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (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