Class: EacLauncher::Runner::Projects

Inherits:
Instances::RunnerHelper show all
Defined in:
lib/eac_launcher/runner/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 Instances::RunnerHelper

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

Instance Method Details

#runObject



23
24
25
26
27
28
# File 'lib/eac_launcher/runner/projects.rb', line 23

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