Class: Fum::Command
Direct Known Subclasses
Fum::Commands::Events, Fum::Commands::Launch, Fum::Commands::List, Fum::Commands::Repair, Fum::Commands::Status, Fum::Commands::Tail, Fum::Commands::Template, Fum::Commands::Terminate
Instance Method Summary collapse
-
#initialize(application) ⇒ Command
constructor
A new instance of Command.
- #parse_options ⇒ Object
-
#stage(app, name) ⇒ Object
Return the stage declaration given app and name.
Methods included from Util
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_options ⇒ Object
10 11 12 |
# File 'lib/fum/command.rb', line 10 def {} 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 |