instance method determine_install_method

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5

Signature

determine_install_method()

No documentation comment.

Source
# File railties/lib/rails/commands/plugin.rb, line 389
      def determine_install_method
        best = @base_command.environment.best_install_method
        @method = :http if best == :http and @method == :export
        case
        when (best == :http and @method != :http)
          msg = "Cannot install using subversion because `svn' cannot be found in your PATH"
        when (best == :export and (@method != :export and @method != :http))
          msg = "Cannot install using #{@method} because this project is not under subversion."
        when (best != :externals and @method == :externals)
          msg = "Cannot install using externals because vendor/plugins is not under subversion."
        end
        if msg
          puts msg
          exit 1
        end
        @method
      end

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

Defined in Rails::Commands::Install

Type at least 2 characters to search.

↑↓ navigate · open · esc close