Sha256: 47cac9cb68de50fd4f2504634a69e8cc4499aec816901f9393c87fb6323b5236

Contents?: true

Size: 1.02 KB

Versions: 12

Compression:

Stored size: 1.02 KB

Contents

# -*- coding: UTF-8 -*-

require 'build-tool/commands'

require 'yaml'

module BuildTool; module Commands; module Configuration

    #
    # BuildCommand
    #
    class Edit < Standard

        name        "edit"
        description ""
        long_description [
            "Prints an alphabetically sorted list of configuration options. If no arguments are
            given it lists all, if arguments are specified it prints those matching them." ]

        def initialize_options
            options.banner = "Usage: #{self.fullname} [OPTIONS]... NAMES..."
            options.separator( "" )
            options.separator( "Options" )
            super
        end

        def applicable?
            BuildTool::Application.instance.has_recipe?
        end

        def do_execute( args )
            return edit_config_options( args )
        end

        def edit_config_options( only )
            return BuildTool::Configuration.edit( only )
        end

    end # class

end; end; end # module BuildTool::Commands::Configuration

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
build-tool-0.6.9 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.8 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.7 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.6 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.5 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.4 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.3 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.2 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.1 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.0 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.0.rc2 lib/build-tool/commands/configuration/edit.rb
build-tool-0.6.0.rc1 lib/build-tool/commands/configuration/edit.rb