Sha256: f858b53beb64e5204037d9a25b0a95bb61ae85d713a6e9d792792c12e81c8a23

Contents?: true

Size: 696 Bytes

Versions: 6

Compression:

Stored size: 696 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."

        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

    end # class

end; end; end # module BuildTool::Commands::Modules



Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
build-tool-0.2 lib/build-tool/commands/environments/set.rb
build-tool-0.1.4 lib/build-tool/commands/environments/set.rb
build-tool-0.1.3 lib/build-tool/commands/environments/set.rb
build-tool-0.1.2 lib/build-tool/commands/environments/set.rb
build-tool-0.1.0 lib/build-tool/commands/environments/set.rb
build-tool-0.1.1 lib/build-tool/commands/environments/set.rb