Sha256: dc58815c34c54af580916678db6f72427641362cad89b0251dcb320fef54484d

Contents?: true

Size: 752 Bytes

Versions: 15

Compression:

Stored size: 752 Bytes

Contents

# frozen_string_literal: true

require 'avm/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

        private

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
avm-tools-0.106.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.105.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.104.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.103.1 lib/avm/tools/runner/app_src.rb
avm-tools-0.103.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.102.2 lib/avm/tools/runner/app_src.rb
avm-tools-0.102.1 lib/avm/tools/runner/app_src.rb
avm-tools-0.102.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.101.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.100.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.99.1 lib/avm/tools/runner/app_src.rb
avm-tools-0.99.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.98.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.97.0 lib/avm/tools/runner/app_src.rb
avm-tools-0.96.0 lib/avm/tools/runner/app_src.rb