Class: Invocker::OptparsrInvocker::ScriptOptions
- Inherits:
-
Object
- Object
- Invocker::OptparsrInvocker::ScriptOptions
- Defined in:
- lib/invocker/optpare.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#config_message ⇒ Object
Returns the value of attribute config_message.
-
#config_type ⇒ Object
Returns the value of attribute config_type.
-
#database ⇒ Object
Returns the value of attribute database.
-
#execute ⇒ Object
Returns the value of attribute execute.
Instance Method Summary collapse
- #define_options(parser) ⇒ Object
-
#initialize ⇒ ScriptOptions
constructor
A new instance of ScriptOptions.
Constructor Details
#initialize ⇒ ScriptOptions
Returns a new instance of ScriptOptions.
20 21 22 23 |
# File 'lib/invocker/optpare.rb', line 20 def initialize self.config = false self.execute = false end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
18 19 20 |
# File 'lib/invocker/optpare.rb', line 18 def config @config end |
#config_message ⇒ Object
Returns the value of attribute config_message.
18 19 20 |
# File 'lib/invocker/optpare.rb', line 18 def @config_message end |
#config_type ⇒ Object
Returns the value of attribute config_type.
18 19 20 |
# File 'lib/invocker/optpare.rb', line 18 def config_type @config_type end |
#database ⇒ Object
Returns the value of attribute database.
18 19 20 |
# File 'lib/invocker/optpare.rb', line 18 def database @database end |
#execute ⇒ Object
Returns the value of attribute execute.
18 19 20 |
# File 'lib/invocker/optpare.rb', line 18 def execute @execute end |
Instance Method Details
#define_options(parser) ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/invocker/optpare.rb', line 25 def (parser) init_config parser # add additional options Invocker::OptpareOptions::Configs.define(parser, self) Invocker::OptpareOptions::Executes.define(parser, self) Invocker::OptpareOptions::Databases.define(parser, self) end_config parser end |