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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ff6fdd37086924b6f9b60bb70a19484a86535a5
4
- data.tar.gz: 75822513930c79c1a2f8e4f0e8220c06fe199569
3
+ metadata.gz: b2afe6c7f8a9a9bfcfcd343bb9bf30c0bedf9e11
4
+ data.tar.gz: d60b203aa2d4d24b4462a62ebe79fb4cf795c563
5
5
  SHA512:
6
- metadata.gz: e90f0e0c82f3c8ba952ed8b51c9ddf65c789e165b9f01653e45b85c9096c1779048bd141f9de5092fba90242ab12676e62c1f29ce9a77df50ba8f257c43d0fc3
7
- data.tar.gz: f991494348f8be1d893fdeb954fb6621b5c96de31751c2ee62dd2756b740cbe5dcc726b358796fffd389477488f55c56e722bd2796e6f46cb05c193bc6e80eab
6
+ metadata.gz: 34c383325c90278fce146a1cdd7bd9e22f5cf9a52576eae35a43bff6358ae5dd756aaa434fa4078ffea1bf501fc4c1f1997e370e31b16346fb3a8ad23a5e705b
7
+ data.tar.gz: dfefc81890bdd0ef228e12f875b91fe4b560e09a91e240a9f1d58f866c53293910b59384b32c1c65c7ce6604326a2412925e9c8a030165dbd1953424ba68cefd
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A collection of useful tools used at Ten Forward Consulting
4
4
 
5
+ [![Gem](https://img.shields.io/gem/v/jefferies_tube.svg)](https://rubygems.org/gems/jefferies_tube)
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -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
- on roles(:app), primary: true do |host, user|
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 /u/apps/#{fetch :application}/current && exec bash -l"|
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.3"
2
+ VERSION = "0.1.4"
3
3
 
4
4
  def self.latest_rubygems_version
5
- JSON.parse(Net::HTTP.get('rubygems.org', '/api/v1/versions/jefferies_tube/latest.json'))["version"]
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.3
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-06-28 00:00:00.000000000 Z
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.4.5.1
174
+ rubygems_version: 2.6.13
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: Ten Forward Consulting useful tools.