Class: Migr8::Actions::StatusAction

Inherits:
Action
  • Object
show all
Defined in:
lib/migr8.rb

Constant Summary collapse

NAME =
"status"
DESC =
"show status"
OPTS =
["-n N :  show N histories (default: 5)"]
ARGS =
nil

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



1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
# File 'lib/migr8.rb', line 1681

def run(options, args)
  if options['n']
    n = options['n'].to_i
  else
    n = 5
  end
  #
  op = RepositoryOperation.new(repository())
  puts op.status
end