views:

183

answers:

1

Installing a rails plugin using the git:// protocol is easy, you just type

script/plugin install git://server.local/my_git_repo.git

How do I install a plugin from a git repo hosted over ssh?

When I type

script/plugin install [email protected]:plugin.git

I get "Plugin not found"

I know it's not a git issue because the installer doesn't even prompt me for my ssh password.

+1  A: 

script/plugin can not currently handle git over ssh.

Instead you're just going to have to clone the repository manually from the vendor/plugins directory.

$RAILS_ROOT/vendor/plugins $ git clone ssh://[email protected]:plugin.git

The plugin script also removes the hidden directories, .git and .git-ignored from the newly cloned copy.

EmFi