Sha256: 56df1aa373e9cc2a8ff8a335938a35ed1526b9238f7894ae9b653009624d65ee
Contents?: true
Size: 829 Bytes
Versions: 3
Compression:
Stored size: 829 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'bundler/setup' require 'eac_launcher' class Runner < ::EacLauncher::Instances::RunnerHelper DOC = <<DOCOPT.freeze Listas os projetos disponÃveis. Usage: __PROGRAM__ __PROGRAM__ -i | --instances __PROGRAM__ -h | --help Options: -h --help Show this screen. -i --instances Show instances. --recache Rewrite instances cache. DOCOPT private def run ::EacLauncher::Context.current.recache = options['--recache'] ::EacLauncher::Context.current.projects.each do |p| show_project(p) end end def show_project(p) puts project_label(p) return unless options['--instances'] p.instances.each do |i| puts " * #{instance_label(i)}" end end def project_label(p) p.to_s.cyan.to_s end end Runner.new
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eac_launcher-0.5.1 | exe/eac_launcher_projects |
eac_launcher-0.5.0 | exe/eac_launcher_projects |
eac_launcher-0.4.0 | exe/eac_launcher_projects |