Class: Avm::Tools::Runner::Launcher::Projects

Inherits:
EacLauncher::Instances::RunnerHelper show all
Defined in:
lib/avm/tools/runner/launcher/projects.rb

Constant Summary collapse

DOC =
<<~DOCOPT
  Shows available projects.

  Usage:
    __PROGRAM__ [options]
    __PROGRAM__ -h | --help

  Options:
    -h --help        Show this screen.
    -i --instances   Show instances.
    --recache        Rewrite instances cache.

DOCOPT

Instance Method Summary collapse

Methods inherited from EacLauncher::Instances::RunnerHelper

#context, #find_instances, #instance_label, #instance_match?, #instance_stereotypes, #instances

Instance Method Details

#runObject



25
26
27
28
29
30
# File 'lib/avm/tools/runner/launcher/projects.rb', line 25

def run
  ::EacLauncher::Context.current.recache = options['--recache']
  ::EacLauncher::Context.current.projects.each do |p|
    show_project(p)
  end
end