Class: EacLauncher::Runner::Projects

Inherits:
Instances::RunnerHelper show all
Defined in:
lib/eac_launcher/runner/projects.rb

Constant Summary collapse

DOC =
"Shows available projects.\n\nUsage:\n  __PROGRAM__ [options]\n  __PROGRAM__ -h | --help\n\nOptions:\n  -h --help        Show this screen.\n  -i --instances   Show instances.\n  --recache        Rewrite instances cache.\n\n"

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