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

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