class MiGA::Cli::Action::NextStep

Public Instance Methods

parse_cli() click to toggle source
# File lib/miga/cli/action/next_step.rb, line 8
def parse_cli
  cli.parse do |opt|
    cli.opt_object(opt, [:project, :dataset_opt])
  end
end
perform() click to toggle source
# File lib/miga/cli/action/next_step.rb, line 14
def perform
  p = cli.load_project
  n = nil
  if cli[:dataset].nil?
    n = p.next_distances(false)
    n ||= p.next_inclade(false)
  else
    d = cli.load_dataset
    n = d.next_preprocessing if d.is_active?
  end
  n ||= '?'
  cli.puts n
end