instance method options

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

options()

No documentation comment.

Source
# File railties/lib/commands/plugin.rb, line 547
    def options
      OptionParser.new do |o|
        o.set_summary_indent('  ')
        o.banner =    "Usage: #{@base_command.script_name} list [OPTIONS] [PATTERN]"
        o.define_head "List available plugins."
        o.separator   ""        
        o.separator   "Options:"
        o.separator   ""
        o.on(         "-s", "--source=URL1,URL2", Array,
                      "Use the specified plugin repositories.") {|sources| @sources = sources}
        o.on(         "--local", 
                      "List locally installed plugins.") {|local| @local, @remote = local, false}
        o.on(         "--remote",
                      "List remotely available plugins. This is the default behavior",
                      "unless --local is provided.") {|remote| @remote = remote}
      end
    end

Defined in railties/lib/commands/plugin.rb line 547 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Commands::List

Type at least 2 characters to search.

↑↓ navigate · open · esc close