Class: Termory::OptpareOptions::Databases
- Inherits:
-
Object
- Object
- Termory::OptpareOptions::Databases
- Defined in:
- lib/termory/optparsr_options/database.rb
Class Method Summary collapse
Class Method Details
.define(parser, script_options) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/termory/optparsr_options/database.rb', line 4 def self.define(parser, ) # return unless script_options.execute = [:create, :drop, :upall, :downall ] parser.on("--db [TYPE]", , , "Select transfer type (create, :drop, :upall, :downall)") do |db| .database = db end end |