Sha256: 5b9aaf1d966387db1f512e626f8d4daf3cc0bccf08c2d0121b8d603d56913b66

Contents?: true

Size: 830 Bytes

Versions: 24

Compression:

Stored size: 830 Bytes

Contents

# frozen_string_literal: true

require 'avm/tools/app_src'
require 'eac_cli/core_ext'

module Avm
  module Tools
    class Runner
      class AppSrc
        require_sub __FILE__
        runner_with :help, :subcommands do
          desc 'Utilities for local projects.'
          arg_opt '-C', '--path', 'Path to local project instance.'
          subcommands
        end

        def instance_banner
          infov 'Instance', instance
          infov 'Stereotypes', instance.stereotypes.map(&:label).join(', ')
        end

        def subject
          instance.avm_instance
        end

        private

        def instance_uncached
          ::Avm::Tools::AppSrc.new(instance_path)
        end

        def instance_path_uncached
          (parsed.path || '.').to_pathname.expand_path
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
avm-tools-0.118.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.117.3 lib/avm/tools/runner/app_src.rb
avm-tools-0.117.2 lib/avm/tools/runner/app_src.rb
avm-tools-0.117.1 lib/avm/tools/runner/app_src.rb
avm-tools-0.117.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.116.2 lib/avm/tools/runner/app_src.rb
avm-tools-0.116.1 lib/avm/tools/runner/app_src.rb
avm-tools-0.116.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.115.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.114.2 lib/avm/tools/runner/app_src.rb
avm-tools-0.114.1 lib/avm/tools/runner/app_src.rb
avm-tools-0.114.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.113.6 lib/avm/tools/runner/app_src.rb
avm-tools-0.113.5 lib/avm/tools/runner/app_src.rb
avm-tools-0.113.4 lib/avm/tools/runner/app_src.rb
avm-tools-0.113.3 lib/avm/tools/runner/app_src.rb
avm-tools-0.113.2 lib/avm/tools/runner/app_src.rb
avm-tools-0.113.1 lib/avm/tools/runner/app_src.rb
avm-tools-0.113.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.112.0 lib/avm/tools/runner/app_src.rb