Skip to content

Commit

Permalink
Drop remaining script/plugin sources references
Browse files Browse the repository at this point in the history
[#3742 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information
tpope authored and spastorino committed Feb 3, 2011
1 parent 434aa09 commit e89ba63
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions railties/lib/rails/commands/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,11 @@ def rails_env
require 'optparse'
module Commands
class Plugin
attr_reader :environment, :script_name, :sources
attr_reader :environment, :script_name
def initialize
@environment = RailsEnvironment.default
@rails_root = RailsEnvironment.default.root
@script_name = File.basename($0)
@sources = []
end

def environment=(value)
Expand All @@ -301,8 +300,6 @@ def options
o.on("-r", "--root=DIR", String,
"Set an explicit rails app directory.",
"Default: #{@rails_root}") { |rails_root| @rails_root = rails_root; self.environment = RailsEnvironment.new(@rails_root) }
o.on("-s", "--source=URL1,URL2", Array,
"Use the specified plugin repositories instead of the defaults.") { |sources| @sources = sources}

o.on("-v", "--verbose", "Turn on verbose output.") { |verbose| $verbose = verbose }
o.on("-h", "--help", "Show this help message.") { puts o; exit }
Expand All @@ -315,8 +312,6 @@ def options

o.separator ""
o.separator "EXAMPLES"
o.separator " Install a plugin:"
o.separator " #{@script_name} plugin install continuous_builder\n"
o.separator " Install a plugin from a subversion URL:"
o.separator " #{@script_name} plugin install http://dev.rubyonrails.com/svn/rails/plugins/continuous_builder\n"
o.separator " Install a plugin from a git URL:"
Expand Down

0 comments on commit e89ba63

Please sign in to comment.