logtail-rails 0.1.4 → 0.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 +4 -4
- data/lib/logtail-rails/tasks/logtail.rake +27 -14
- data/lib/logtail-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f06ff6f125635b3e0222d5b1b4c9a4b1de20dd7a73084144bab4a60b6ae348bd
|
|
4
|
+
data.tar.gz: a94abe2bbc571c46981e65a6f70e00d973745b3147157fa9decd789cc5af78a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 754a9a6d710e7ac3bf553ef28d882e211356a54f0316b5dd1c56471548bda41bcc6af00c624396a5b5a56323e9959b58080cf76e4f885eb19aeb8578d4ea9b68
|
|
7
|
+
data.tar.gz: b060cafd810fd71accf2838538ee149e88fb325031e12ea55796984b4631e66c71029fc43b07a2a5821267e635d14cc25e9f95a1249acc6ad9b78fee70c67427
|
|
@@ -21,24 +21,37 @@ namespace :logtail do
|
|
|
21
21
|
config_file = 'config/initializers/logtail.rb'
|
|
22
22
|
|
|
23
23
|
if File.exist?(config_file) && !force
|
|
24
|
-
puts "logtail.rb file already exists.
|
|
24
|
+
puts "logtail.rb file already exists. Use `rake logtail:install force=true` to overwrite."
|
|
25
25
|
next
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
File.open(config_file, 'w') { |out| out.puts(content(source_token)) }
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
30
|
+
return if quiet
|
|
31
|
+
|
|
32
|
+
if source_token.nil? || source_token == ''
|
|
33
|
+
puts <<~EOF
|
|
34
|
+
Installed a default configuration file at #{config_file}.
|
|
35
|
+
EOF
|
|
36
|
+
|
|
37
|
+
puts <<~EOF
|
|
38
|
+
To monitor your logs in production mode, sign up for an account
|
|
39
|
+
at logtail.com, and replace the source token in the logtail.rb file
|
|
40
|
+
with the one you receive upon registration.
|
|
41
|
+
EOF
|
|
42
|
+
|
|
43
|
+
puts <<~EOF
|
|
44
|
+
Visit logtail.com/help if you are experiencing installation issues.
|
|
45
|
+
EOF
|
|
46
|
+
else
|
|
47
|
+
puts <<~EOF
|
|
48
|
+
Installed a configuration file at #{config_file} with a source token
|
|
49
|
+
ending with '#{source_token[-4..]}'.
|
|
50
|
+
EOF
|
|
51
|
+
|
|
52
|
+
puts <<~EOF
|
|
53
|
+
Visit logtail.com/help if you are experiencing installation issues.
|
|
54
|
+
EOF
|
|
55
|
+
end
|
|
43
56
|
end
|
|
44
57
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: logtail-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Logtail
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-10-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: logtail
|