Class: Helm::Commands::Command
- Inherits:
-
Object
- Object
- Helm::Commands::Command
- Defined in:
- lib/helm/application.rb
Direct Known Subclasses
Database::Migrate, Main::Defined, Servers::Add, Servers::Edit, Servers::List
Instance Attribute Summary collapse
-
#app_config ⇒ Object
Returns the value of attribute app_config.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #if_option(name) ⇒ Object
-
#initialize(app_config, options) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(app_config, options) ⇒ Command
Returns a new instance of Command.
7 8 9 10 |
# File 'lib/helm/application.rb', line 7 def initialize(app_config, ) @app_config = app_config @options = end |
Instance Attribute Details
#app_config ⇒ Object
Returns the value of attribute app_config.
11 12 13 |
# File 'lib/helm/application.rb', line 11 def app_config @app_config end |
#options ⇒ Object
Returns the value of attribute options.
11 12 13 |
# File 'lib/helm/application.rb', line 11 def @options end |
Instance Method Details
#if_option(name) ⇒ Object
13 14 15 16 17 |
# File 'lib/helm/application.rb', line 13 def if_option(name) if .has_key?(name.to_s) yield([name]) end end |