capistrano_ssh 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/capistrano_ssh.gemspec +2 -1
- data/lib/capistrano/recipes.rb +9 -0
- data/lib/capistrano_ssh.rb +2 -8
- metadata +4 -3
data/README.md
CHANGED
data/capistrano_ssh.gemspec
CHANGED
@@ -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 =
|
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
|
data/lib/capistrano_ssh.rb
CHANGED
@@ -1,9 +1,3 @@
|
|
1
|
-
|
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.
|
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:
|
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:
|
83
|
+
hash: -139012972689796940
|
83
84
|
none: false
|
84
85
|
requirements: []
|
85
86
|
rubyforge_project:
|