Sha256: 969343273e43dc25285775c6d854623b634b6c7f9332a505e64d65d25148d63d
Contents?: true
Size: 957 Bytes
Versions: 19
Compression:
Stored size: 957 Bytes
Contents
require 'build-tool/commands' module BuildTool; module Commands; module Environments # # BuildCommand # class Set < Standard name "set" description "Open a shell with the environment set." long_description "Opens a new shell with the exact environment used by build-tool for the script." def do_execute( args ) case args.length when 0 return usage( "Not enough arguments." ) when 1 # OK else return usage( "To many arguments." ) end # Get the environment. env = configuration.environment(args[0]) return env.shell end def initialize_options @options.banner = "Usage: #{Pathname.new($0).basename} #{self.fullname} MODULE" super end end # class end; end; end # module BuildTool::Commands::Modules
Version data entries
19 entries across 19 versions & 1 rubygems