Class: Fum::Command

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/fum/command.rb

Instance Method Summary collapse

Methods included from Util

#die

Constructor Details

#initialize(application) ⇒ Command

Returns a new instance of Command.



6
7
8
# File 'lib/fum/command.rb', line 6

def initialize(application)
  @application = application
end

Instance Method Details

#parse_optionsObject



10
11
12
# File 'lib/fum/command.rb', line 10

def parse_options
  {}
end

#stage(app, name) ⇒ Object

Return the stage declaration given app and name.



15
16
17
# File 'lib/fum/command.rb', line 15

def stage(app, name)
  app.stages[name.to_s] || die("Unknown stage '#{name}'")
end