Class: Invocker::OptparsrInvocker::ScriptOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/invocker/optpare.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeScriptOptions

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

#configObject

Returns the value of attribute config.



18
19
20
# File 'lib/invocker/optpare.rb', line 18

def config
  @config
end

#config_messageObject

Returns the value of attribute config_message.



18
19
20
# File 'lib/invocker/optpare.rb', line 18

def config_message
  @config_message
end

#config_typeObject

Returns the value of attribute config_type.



18
19
20
# File 'lib/invocker/optpare.rb', line 18

def config_type
  @config_type
end

#databaseObject

Returns the value of attribute database.



18
19
20
# File 'lib/invocker/optpare.rb', line 18

def database
  @database
end

#executeObject

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 define_options(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