Sha256: e1379eefffea946bae53070f5c5d8cb3fef13306496bb98539e552c865f492fa
Contents?: true
Size: 964 Bytes
Versions: 32
Compression:
Stored size: 964 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/console/docopt_runner' require 'eac_ruby_utils/core_ext' require 'avm/local_projects/instance' module Avm module Tools class Runner < ::EacRubyUtils::Console::DocoptRunner class LocalProject < ::EacRubyUtils::Console::DocoptRunner require_sub __FILE__ include ::EacCli::DefaultRunner runner_definition 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::LocalProjects::Instance.new(instance_path) end def instance_path_uncached (options.fetch('--path') || '.').to_pathname.expand_path end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems