Sha256: 001eddd462e6018825b5f218d888781ac228540d517657a81ab67e2904d60cb7
Contents?: true
Size: 1.04 KB
Versions: 223
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require 'avm/launcher/instances/runner_helper' module Avm module Tools class Runner class Launcher class Instances runner_with :help, ::Avm::Launcher::Instances::RunnerHelper do desc 'Mostra informações sobre instâncias.' bool_opt '-e', '--extra', 'Show instances\' extra data.' pos_arg :instance_path, repeat: true, optional: true end def run instances.each { |i| show_instance(i) } end private def show_instance(instance) puts instance_label(instance) show_instance_extra(instance) if parsed.extra? end def show_instance_extra(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 end end end end end
Version data entries
223 entries across 223 versions & 2 rubygems