jefferies_tube 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/jefferies_tube/capistrano/rails.rb +2 -1
- data/lib/jefferies_tube/capistrano/ssh.rb +1 -1
- data/lib/jefferies_tube/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2afe6c7f8a9a9bfcfcd343bb9bf30c0bedf9e11
|
4
|
+
data.tar.gz: d60b203aa2d4d24b4462a62ebe79fb4cf795c563
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34c383325c90278fce146a1cdd7bd9e22f5cf9a52576eae35a43bff6358ae5dd756aaa434fa4078ffea1bf501fc4c1f1997e370e31b16346fb3a8ad23a5e705b
|
7
|
+
data.tar.gz: dfefc81890bdd0ef228e12f875b91fe4b560e09a91e240a9f1d58f866c53293910b59384b32c1c65c7ce6604326a2412925e9c8a030165dbd1953424ba68cefd
|
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
namespace :rails do
|
2
2
|
desc "Open the rails console on each of the remote servers"
|
3
3
|
task :console do
|
4
|
-
|
4
|
+
console_roles = [roles(:worker), roles(:app)].find(&:any?)
|
5
|
+
on console_roles, primary: true do |host, user|
|
5
6
|
rails_env = fetch(:rails_env)
|
6
7
|
run_interactively "RAILS_ENV=#{rails_env} bundle exec rails console"
|
7
8
|
end
|
@@ -2,7 +2,7 @@ desc "Open an ssh session"
|
|
2
2
|
task :ssh do
|
3
3
|
on roles(:app), primary: true do |host|
|
4
4
|
port = host.port || 22
|
5
|
-
cmd = %Q|ssh #{host.user}@#{host} -p #{port} -t "cd
|
5
|
+
cmd = %Q|ssh #{host.user}@#{host} -p #{port} -t "cd #{fetch :deploy_to}/current && exec bash -l"|
|
6
6
|
puts cmd
|
7
7
|
exec cmd
|
8
8
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module JefferiesTube
|
2
|
-
VERSION = "0.1.
|
2
|
+
VERSION = "0.1.4"
|
3
3
|
|
4
4
|
def self.latest_rubygems_version
|
5
|
-
JSON.parse(
|
5
|
+
JSON.parse(URI.parse("https://rubygems.org/api/v1/versions/jefferies_tube/latest.json").read)["version"]
|
6
6
|
rescue
|
7
7
|
nil
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jefferies_tube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Samson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
174
|
+
rubygems_version: 2.6.13
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: Ten Forward Consulting useful tools.
|