Sha256: a30dfa57b73a18a7154108db4530b264d4b320ae8bbbc2a8de604fd94df13391

Contents?: true

Size: 505 Bytes

Versions: 9

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

require 'eac_cli/runner/context'
require 'eac_ruby_utils/core_ext'

module Avm
  module Instances
    class Base
      class SubcommandParent
        enable_simple_cache
        common_constructor :instance

        private

        def runner_context_uncached
          ::EacCli::Runner::Context.new(self, argv: runner_argv)
        end

        def runner_argv
          [instance.class.name.split('::')[-2].dasherize, instance.id]
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
avm-0.73.0 lib/avm/instances/base/subcommand_parent.rb
eac_tools-0.67.0 sub/avm/lib/avm/instances/base/subcommand_parent.rb
avm-0.72.0 lib/avm/instances/base/subcommand_parent.rb
eac_tools-0.66.0 sub/avm/lib/avm/instances/base/subcommand_parent.rb
eac_tools-0.65.1 sub/avm/lib/avm/instances/base/subcommand_parent.rb
avm-0.71.0 lib/avm/instances/base/subcommand_parent.rb
eac_tools-0.65.0 sub/avm/lib/avm/instances/base/subcommand_parent.rb
avm-0.70.0 lib/avm/instances/base/subcommand_parent.rb
eac_tools-0.64.0 sub/avm/lib/avm/instances/base/subcommand_parent.rb