Sha256: 3359159a0debd15daa9f78354da328e982afa8b50146e6fefe76de313319d15a
Contents?: true
Size: 954 Bytes
Versions: 5
Compression:
Stored size: 954 Bytes
Contents
require 'build-tool/commands' module BuildTool; module Commands; module Environments # # BuildCommand # class List < Standard name "list" description "List all available environments in alphabetical order." cmdalias "lsenv" def do_execute( args ) if args.length != 0 return usage( "To many arguments." ) end say "%-15s (%s)" % [ "Environment", "Inherits" ] say "------------------------------------------------------------" configuration.environments.keys.sort.each do |name| env = configuration.environment(name) if env.parent say "%-15s %s" % [ name, env.parent.name ] else say name end end return 0 end end # class end; end; end # module BuildTool::Commands::Modules
Version data entries
5 entries across 5 versions & 1 rubygems