mina-tail 0.0.2 → 1.0.0
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/mina/tail/tasks.rake +14 -12
- data/lib/mina/tail/version.rb +1 -1
- data/mina-tail.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f5883d2ee075b24b05f89de187d54552cc27744
|
4
|
+
data.tar.gz: 4aa7d19971858a0f81c0b9985d21396fc8f8564b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64dbcf813ef7a7fb2d44d349b54f72bb0c24e97f5a6bcd66a7ef9dad194e1727862648cec95080c9172e9e2c8840aa9a19ee3b5c097d48c6715e67f813644ffa
|
7
|
+
data.tar.gz: accc94a55e053aa3db4f4307c8789c289f8b0df359d3db10006dceafc55d3f23f0fc64e70ac9988881f3210e031d8d19b06fcfdd90943afc7acb3f3388c80a6c
|
data/README.md
CHANGED
data/lib/mina/tail/tasks.rake
CHANGED
@@ -1,27 +1,29 @@
|
|
1
1
|
namespace :tail do
|
2
|
-
desc
|
2
|
+
desc 'Lists logs available to tail'
|
3
3
|
task :list => :environment do
|
4
|
-
|
5
|
-
log_path = "#{
|
6
|
-
|
4
|
+
in_path "#{current_path}" do
|
5
|
+
log_path = "#{fetch(:current_path)}/log"
|
6
|
+
command %{
|
7
7
|
echo "-----> Log files in #{log_path}"
|
8
8
|
#{%[ls #{log_path} | grep log]}
|
9
9
|
}
|
10
10
|
end
|
11
11
|
end
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
|
13
|
+
desc 'Shows live environment logs'
|
14
|
+
task live: :environment do
|
15
|
+
in_path "#{fetch(:current_path)}" do
|
16
|
+
file = ENV['file'] || "#{fetch(:rails_env)}.log"
|
17
|
+
command %[tail -f log/#{file}]
|
17
18
|
end
|
18
19
|
end
|
20
|
+
|
19
21
|
desc "Show last lines of the environment logs"
|
20
22
|
task :last => :environment do
|
21
|
-
|
23
|
+
in_path "#{fetch(:current_path)}" do
|
22
24
|
lines = ENV['lines'] || 2000
|
23
|
-
file = ENV['file'] || "#{rails_env}.log"
|
24
|
-
|
25
|
+
file = ENV['file'] || "#{fetch(:rails_env)}.log"
|
26
|
+
command %[tail -#{lines} log/#{file}]
|
25
27
|
end
|
26
28
|
end
|
27
29
|
end
|
data/lib/mina/tail/version.rb
CHANGED
data/mina-tail.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "mina", "
|
21
|
+
spec.add_dependency "mina", "~> 1.0.0"
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.7"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-tail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Senff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mina
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 1.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.5.1
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Tasks for tailing Rails log files in a Mina deployment environment.
|