method

git_command

rails latest stable - Class: Plugin

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

git_command(cmd, options = {})
private

No documentation available.

# File railties/lib/commands/plugin.rb, line 272
    def git_command(cmd, options = {})
      root = rails_env.root
      mkdir_p "#{root}/vendor/plugins"
      base_cmd = "git #{cmd} --depth 1 #{uri} \"#{root}/vendor/plugins/#{name}\""
      puts base_cmd if $verbose
      puts "removing: #{root}/vendor/plugins/#{name}/.git"
      system(base_cmd)
      rm_rf "#{root}/vendor/plugins/#{name}/.git"
    end