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

Version Path
avm-tools-0.162.0 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.94.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.161.0 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.86.5 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.160.2 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.86.4 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.86.3 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.160.1 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.86.2 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.86.1 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.160.0 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.86.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.85.1 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.159.1 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.85.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.84.2 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.84.1 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.84.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.83.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.159.0 lib/avm/tools/runner/launcher/instances.rb