Class: Termory::OptpareOptions::Databases

Inherits:
Object
  • Object
show all
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, script_options)
  # return unless script_options.execute

  options =  [:create, :drop, :upall, :downall ]
  parser.on("--db [TYPE]", options, options, "Select transfer type (create, :drop, :upall, :downall)") do |db|
    script_options.database = db
  end
end