Sha256: ba8eb60cf628fa0b76829e2178e3f54ed356889cdfd01cd602ce055c3f75de7e

Contents?: true

Size: 677 Bytes

Versions: 14

Compression:

Stored size: 677 Bytes

Contents

# frozen_string_literal: true

require 'avm/instances/base'
require 'avm/registry'
require 'eac_cli/core_ext'

module Avm
  module Tools
    class Runner
      class Instance
        require_sub __FILE__
        runner_with :help, :subcommands do
          desc 'Utilities for generic instances.'
          pos_arg :instance_id
          subcommands
        end

        def extra_available_subcommands
          instance.if_present({}, &:extra_available_subcommands)
        end

        private

        def instance_uncached
          parsed.instance_id.if_present do |v|
            ::Avm::Registry.instances.detect(v)
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
eac_tools-0.27.2 sub/avm-tools/lib/avm/tools/runner/instance.rb
eac_tools-0.27.1 sub/avm-tools/lib/avm/tools/runner/instance.rb
avm-tools-0.135.0 lib/avm/tools/runner/instance.rb
eac_tools-0.27.0 sub/avm-tools/lib/avm/tools/runner/instance.rb
avm-tools-0.134.0 lib/avm/tools/runner/instance.rb
eac_tools-0.26.0 sub/avm-tools/lib/avm/tools/runner/instance.rb
eac_tools-0.25.1 sub/avm-tools/lib/avm/tools/runner/instance.rb
eac_tools-0.25.0 sub/avm-tools/lib/avm/tools/runner/instance.rb
eac_tools-0.24.1 sub/avm-tools/lib/avm/tools/runner/instance.rb
avm-tools-0.133.0 lib/avm/tools/runner/instance.rb
eac_tools-0.24.0 sub/avm-tools/lib/avm/tools/runner/instance.rb
eac_tools-0.23.0 sub/avm-tools/lib/avm/tools/runner/instance.rb
avm-tools-0.132.1 lib/avm/tools/runner/instance.rb
eac_tools-0.22.0 sub/avm-tools/lib/avm/tools/runner/instance.rb