Module: Cawcaw::Command::Database

Defined in:
lib/cawcaw/command/database.rb,
lib/cawcaw/command/database/table.rb

Defined Under Namespace

Modules: Table

Class Method Summary collapse

Class Method Details

.run(argv, input_stream = $stdin, output_stream = $stdout) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/cawcaw/command/database.rb', line 4

def self.run(argv, input_stream=$stdin, output_stream=$stdout)
  command = argv.shift
  case command
  when "table"
    return Cawcaw::Command::Database::Table.run(argv, input_stream, output_stream)
  else
    STDERR.puts "invalid active-record command: '#{command}'"
  end
end