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

Version Path
build-tool-0.5.7 lib/build-tool/commands/environments/set.rb
build-tool-0.5.6 lib/build-tool/commands/environments/set.rb
build-tool-0.5.5 lib/build-tool/commands/environments/set.rb
build-tool-0.5.4 lib/build-tool/commands/environments/set.rb
build-tool-0.5.3 lib/build-tool/commands/environments/set.rb
build-tool-0.5.2 lib/build-tool/commands/environments/set.rb
build-tool-0.4.6 lib/build-tool/commands/environments/set.rb
build-tool-0.5.1 lib/build-tool/commands/environments/set.rb
build-tool-0.4.5 lib/build-tool/commands/environments/set.rb
build-tool-0.5.0 lib/build-tool/commands/environments/set.rb
build-tool-0.4.4 lib/build-tool/commands/environments/set.rb
build-tool-0.4.3 lib/build-tool/commands/environments/set.rb
build-tool-0.4.2 lib/build-tool/commands/environments/set.rb
build-tool-0.4.1 lib/build-tool/commands/environments/set.rb
build-tool-0.4.0 lib/build-tool/commands/environments/set.rb
build-tool-0.3.3 lib/build-tool/commands/environments/set.rb
build-tool-0.3.2 lib/build-tool/commands/environments/set.rb
build-tool-0.3.1 lib/build-tool/commands/environments/set.rb
build-tool-0.3 lib/build-tool/commands/environments/set.rb