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
eac_tools-0.55.2 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.145.1 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.55.1 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.145.0 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.55.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.144.0 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.54.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.53.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.52.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.51.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.143.0 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.50.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.49.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.142.8 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.48.1 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.48.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.47.2 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
avm-tools-0.142.7 lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.47.1 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.47.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb