class EacLauncher::Runner::Projects

Constants

DOC

Public Instance Methods

run() click to toggle source
# 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

Private Instance Methods

project_label(project) click to toggle source
# File lib/eac_launcher/runner/projects.rb, line 41
def project_label(project)
  project.to_s.cyan.to_s
end
show_project(project) click to toggle source
# File lib/eac_launcher/runner/projects.rb, line 32
def show_project(project)
  puts project_label(project)
  return unless options['--instances']

  project.instances.each do |i|
    puts "  * #{instance_label(i)}"
  end
end