Module: Priam::Command::Cql

Defined in:
lib/priam/command/cql.rb,
lib/priam/command/cql/create.rb

Defined Under Namespace

Modules: Create

Class Method Summary collapse

Class Method Details

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



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/priam/command/cql.rb', line 5

def self.run(argv, input_stream=$stdin, output_stream=$stdout)
  command = argv.shift
  case command
  when "create"
    exit_code = Priam::Command::Cql::Create.run(argv) || 0
  else
    STDERR.puts "Invalid cql command: '#{command}'"
    exit_code = 1
  end
  return exit_code
end