Sha256: 7d8319cc34b832456672f48e225cddf0d08387369451d6c722b0e685fb7c9561
Contents?: true
Size: 1.11 KB
Versions: 16
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true require 'eac_launcher/instances/runner_helper' module EacLauncher class Runner < ::EacRubyUtils::Console::DocoptRunner class Instances < ::EacLauncher::Instances::RunnerHelper DOC = <<~DOCOPT Mostra informações sobre instâncias. Usage: __PROGRAM__ [options] [<instance_path>...] __PROGRAM__ -h | --help Options: -h --help Show this screen. --all Get all instances. --recache Rewrite instances cache. DOCOPT def run ::EacLauncher::Context.current.recache = options['--recache'] instances.each { |i| show_instance(i) } end private def show_instance(instance) puts instance_label(instance) infov(' * Parent', (instance.parent ? instance_label(instance.parent) : '-')) infov(' * Git current revision', instance.options.git_current_revision) infov(' * Git publish remote', instance.options.git_publish_remote) end def instance_path options['<instance_path>'] end end end end
Version data entries
16 entries across 16 versions & 1 rubygems