Class: Migr8::Actions::ApplyAction
Constant Summary collapse
- NAME =
"apply"
- DESC =
"apply specified migrations"
- OPTS =
[]
- ARGS =
"version ..."
Instance Method Summary collapse
Methods inherited from Action
#cmdopterr, find_by_name, #get_command, inherited, #parse, #parser, #repository, #short_usage, subclasses, #usage
Instance Method Details
#run(options, args) ⇒ Object
1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 |
# File 'lib/migr8.rb', line 1781 def run(, args) ! args.empty? or raise cmdopterr("#{NAME}: version required.") # versions = args repo = repository() op = RepositoryOperation.new(repo) _wrap do op.apply(versions) end end |