jefferies_tube 1.4 → 1.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42afa1c0d3f03fcca7ee352fd0d557c6592c15cc72f575c1f76b059c10a0fbaa
4
- data.tar.gz: 5b16221cfc31659d7dcc2eff9289932f3f1974e401eae42d0b1e172219ad9e4d
3
+ metadata.gz: 5d8559f8d9ea14fa4e3fadba12b86c710fa6466f69dedcb076f3baff26dfd2af
4
+ data.tar.gz: 6efef12d39e44e3dd174e3cd2ada93aeac7ec577092176cbff29034e9c92cdc0
5
5
  SHA512:
6
- metadata.gz: 38be79244ee0c4f08f72cb82d3a82240977f6d8a1aafe99cbe8b4aa0d2393fcd07b962a875b99ca1b064899b64459e7d0d92aeb7c5216d84211680ad9acd54f4
7
- data.tar.gz: f2cfe1e09ca3532bdf755d34fae7aef8a29361254975d9b9f70c7094570d6b05a6690d4b9bb41ac5fb364a49c446807ffb36c972e514595594f8b73018fe01a4
6
+ metadata.gz: 927415fb43ab50e81c33fba7ffcc9d876c1c6510883beb81848f91b141992026f1279d75979dc6c5175acfc37f4b30473d83342b2dced716d4b4261c70f1fa41
7
+ data.tar.gz: 931b995f90b0c43cab247ef7346fa3c0422a9f3be9944ff611838c6dfd4ea1653584a84d8716a098d029605cccac2c7d80946e9064df9869ecda28c4601c3f18
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ This project attempts to follow [semantic versioning](https://semver.org/)
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.5
10
+
11
+ * enhancements
12
+ * Add rails:allthelogs capistrano command to tail all of the rails logs at once.
13
+
9
14
  ## 1.4
10
15
 
11
16
  * enhancements
data/README.md CHANGED
@@ -67,6 +67,10 @@ Open database console.
67
67
 
68
68
  Open log file. Can specify log file like so: `LOG=foobar cap beta rails:log`
69
69
 
70
+ * `cap beta rails:allthelogs`
71
+
72
+ Open the logfile for all servers (has the role :app) combined. Can specify log file like so: `LOG=foobar cap beta rails:allthelogs`
73
+
70
74
  * `cap beta db:backup`
71
75
 
72
76
  Make a database backup.
@@ -22,6 +22,24 @@ namespace :rails do
22
22
  end
23
23
  end
24
24
 
25
+ desc "Open all rails log using multitail"
26
+ task :allthelogs do
27
+ commands = []
28
+ roles(:app).each do |host|
29
+ filename = ENV['LOG'] || rails_env
30
+ port = host.port || 22
31
+ commands << "ssh #{host.user}@#{host} -p #{port} \"tail -f #{deploy_to}/current/log/#{filename}.log\" | grep --line-buffered --invert \"Delayed::Backend::ActiveRecord::Job Load\""
32
+ end
33
+
34
+ command = "multitail"
35
+ commands.each do |c|
36
+ command += " -L '#{c}'"
37
+ end
38
+
39
+ puts command
40
+ exec command
41
+ end
42
+
25
43
  desc "Run a rake task"
26
44
  task :rake, :task_to_run do |_, parameters|
27
45
  task_to_run = parameters[:task_to_run]
@@ -1,7 +1,7 @@
1
1
  require 'open-uri'
2
2
 
3
3
  module JefferiesTube
4
- VERSION = "1.4"
4
+ VERSION = "1.5"
5
5
 
6
6
  def self.latest_rubygems_version
7
7
  JSON.parse(URI.parse("https://rubygems.org/api/v1/versions/jefferies_tube/latest.json").read)["version"]
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: '1.4'
4
+ version: '1.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Samson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-19 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -161,7 +161,7 @@ homepage: https://github.com/tenforwardconsulting/jefferies_tube/
161
161
  licenses:
162
162
  - MIT
163
163
  metadata: {}
164
- post_install_message:
164
+ post_install_message:
165
165
  rdoc_options: []
166
166
  require_paths:
167
167
  - lib
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  requirements: []
179
179
  rubygems_version: 3.0.3
180
- signing_key:
180
+ signing_key:
181
181
  specification_version: 4
182
182
  summary: Ten Forward Consulting useful tools.
183
183
  test_files: