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