Class: Sashimi::Commands::Install
- Inherits:
-
Object
- Object
- Sashimi::Commands::Install
- Defined in:
- lib/sashimi/commands.rb
Instance Method Summary collapse
-
#initialize(base_command) ⇒ Install
constructor
A new instance of Install.
- #options ⇒ Object
- #parse!(args) ⇒ Object
Constructor Details
#initialize(base_command) ⇒ Install
Returns a new instance of Install.
87 88 89 |
# File 'lib/sashimi/commands.rb', line 87 def initialize(base_command) @base_command = base_command end |
Instance Method Details
#options ⇒ Object
91 92 93 94 95 96 97 98 |
# File 'lib/sashimi/commands.rb', line 91 def OptionParser.new do |o| o.set_summary_indent(' ') o. = "Usage: #{@base_command.script_name} install [OPTIONS] URL [URL2, URL3]" o.define_head "Install plugin(s) from known URL(s)." o.on("-r", "--rails", "Install the plugin(s) in a Rails app.") { |@rails| } end end |