capistrano_ssh 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Capistrano::Ssh
1
+ # Capistrano SSH
2
2
 
3
3
  Open a ssh connection to one of the app servers.
4
4
 
@@ -1,10 +1,11 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'capistrano_ssh'
4
5
 
5
6
  Gem::Specification.new do |gem|
6
7
  gem.name = "capistrano_ssh"
7
- gem.version = "0.1.1"
8
+ gem.version = CapistranoSSH::VERSION
8
9
  gem.authors = ["Timo Schilling"]
9
10
  gem.email = ["timo@schilling.io"]
10
11
  gem.description = %q{Open a ssh connection to one of the app servers.}
@@ -0,0 +1,9 @@
1
+ require "capistrano/configuration"
2
+
3
+ Capistrano::Configuration.instance(:must_exist).load do
4
+ desc "Open a ssh connection to one of the remote servers"
5
+ task :ssh, :roles => :app do
6
+ hostname = find_servers_for_task(current_task).first
7
+ exec "ssh -l #{user} #{hostname} -p #{port} -t 'cd #{current_path} && bash'"
8
+ end
9
+ end
@@ -1,9 +1,3 @@
1
- require "capistrano/configuration"
2
-
3
- Capistrano::Configuration.instance(:must_exist).load do
4
- desc "Open a ssh connection to one of the remote servers"
5
- task :ssh, :roles => :app do
6
- hostname = find_servers_for_task(current_task).first
7
- exec "ssh -l #{user} #{hostname} -p #{port} -t 'cd #{current_path} && bash'"
8
- end
1
+ module CapistranoSSH
2
+ VERSION = "0.2.0"
9
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: capistrano_ssh
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Timo Schilling
@@ -56,6 +56,7 @@ files:
56
56
  - README.md
57
57
  - Rakefile
58
58
  - capistrano_ssh.gemspec
59
+ - lib/capistrano/recipes.rb
59
60
  - lib/capistrano_ssh.rb
60
61
  homepage: http://github.com/timoschilling/capistrano_ssh
61
62
  licenses: []
@@ -70,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
71
  version: '0'
71
72
  segments:
72
73
  - 0
73
- hash: 4538532078762171363
74
+ hash: -139012972689796940
74
75
  none: false
75
76
  required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  requirements:
@@ -79,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
80
  version: '0'
80
81
  segments:
81
82
  - 0
82
- hash: 4538532078762171363
83
+ hash: -139012972689796940
83
84
  none: false
84
85
  requirements: []
85
86
  rubyforge_project: