Class: OsUp::Cli::Runner

Inherits:
Command
  • Object
show all
Defined in:
lib/osup/cli/runner.rb

Instance Method Summary collapse

Methods inherited from Command

run

Instance Method Details

#runObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/osup/cli/runner.rb', line 3

def run
  require_args!('pool', 'dataset', 'migration dirname', 'action')

  m = Migration.load(OsUp.migration_dir, args[2])
  Process.setproctitle("osup: #{args[0]} #{m.id} up")

  $MIGRATION_ID = m.id
  $POOL = args[0]
  $DATASET = args[1]
  load(m.action_script(args[3]))
end