Module: Prick::Migra

Defined in:
lib/prick/migra.rb

Class Method Summary collapse

Class Method Details

.migrate(from_name, to_name, file) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/prick/migra.rb', line 4

def self.migrate(from_name, to_name, file)
  args = urls(from_name, to_name).join(" ")
  options = OPTIONS.join(" ")
  Command.command %(
    status=0
    migra #{options} #{args} >#{file} || { status=$?; }
    [ $status = 2 ] || exit 1
  )
end