instance method parse!

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

parse!(args)

No documentation comment.

Parameters

args req
Source
# File railties/lib/commands/plugin.rb, line 836
    def parse!(args)
      options.parse!(args)
      root = @base_command.environment.root
      cd root
      args = Dir["vendor/plugins/*"].map do |f|
        File.directory?("#{f}/.svn") ? File.basename(f) : nil
      end.compact if args.empty?
      cd "vendor/plugins"
      args.each do |name|
        if File.directory?(name)
          puts "Updating plugin: #{name}"
          system("svn #{$verbose ? '' : '-q'} up \"#{name}\" #{@revision ? "-r #{@revision}" : ''}")
        else
          puts "Plugin doesn't exist: #{name}"
        end
      end
    end

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

Defined in Commands::Update

Type at least 2 characters to search.

↑↓ navigate · open · esc close