Sha256: 0e54400626875233b801f7d40cafce54c7b4d4dd247aef5ba1491796182c8681
Contents?: true
Size: 936 Bytes
Versions: 19
Compression:
Stored size: 936 Bytes
Contents
require 'build-tool/commands' module BuildTool; module Commands; module Modules # # BuildCommand # class Shell < Standard include MJ::Tools::SubProcess name "shell" def initialize_options @options.banner = "Usage: #{Pathname.new($0).basename} #{self.fullname} MODULE" super end def do_execute( args ) # Check the number of commandline args if args.length != 1 return usage( "Wrong number of arguments" ) end # Translate argument into modules mod = complete_modules( args[0] ) if mod.length != 1 return usage( "This command only works on one module" ) end # Get our one and only module mod[0].environment.shell end end # class Shell end; end; end # module BuildTool::Commands::Modules
Version data entries
19 entries across 19 versions & 1 rubygems