papertrail 0.11.0 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/papertrail/cli_add_group.rb +2 -1
- data/lib/papertrail/cli_add_system.rb +2 -1
- data/lib/papertrail/cli_helpers.rb +2 -2
- data/lib/papertrail.rb +1 -1
- data/papertrail.gemspec +2 -2
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e47ae7a251a62299dac9362dac999348a7c04a4dde2a1583c56984cff19bf8ae
|
4
|
+
data.tar.gz: c723010a69cc0a7c505cf6c08e35b2b9ecf06315103c4d54d746d1e7fbc1297b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b905214677ed2ec957d71fee883c1bd50118f4855ccc4b3d29acbc3d3fc90c1f5b6d302660704b100f049ad039a0db88e75c99c2a3779d8e280cba74bd393a6
|
7
|
+
data.tar.gz: 548d2f5898ddc50309d491b8e5e0f8c746edcc0ce40f249b693332ad38ab47482bde90450abf6b353dffa80c7ba136e2495dc6c8c62a3c5cf1aef48df92d3303
|
@@ -48,7 +48,8 @@ module Papertrail
|
|
48
48
|
|
49
49
|
Papertrail::Connection.new(options).start do |connection|
|
50
50
|
# Bail if group already exists
|
51
|
-
|
51
|
+
existing = connection.show_group(options[:group])
|
52
|
+
if existing && existing['name'].upcase == options[:group].upcase
|
52
53
|
exit 0
|
53
54
|
end
|
54
55
|
|
@@ -86,7 +86,8 @@ module Papertrail
|
|
86
86
|
|
87
87
|
Papertrail::Connection.new(options).start do |connection|
|
88
88
|
# Bail if system already exists
|
89
|
-
|
89
|
+
existing = connection.show_source(options[:system])
|
90
|
+
if existing && existing['name'].upcase == options[:system].upcase
|
90
91
|
exit 0
|
91
92
|
end
|
92
93
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Papertrail
|
2
2
|
module CliHelpers
|
3
3
|
def find_configfile
|
4
|
-
if File.
|
4
|
+
if File.exist?(path = File.expand_path('.papertrail.yml'))
|
5
5
|
return path
|
6
6
|
end
|
7
|
-
if File.
|
7
|
+
if File.exist?(path = File.expand_path('~/.papertrail.yml'))
|
8
8
|
return path
|
9
9
|
end
|
10
10
|
rescue ArgumentError
|
data/lib/papertrail.rb
CHANGED
data/papertrail.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
|
|
9
9
|
## If your rubyforge_project name is different, then edit it and comment out
|
10
10
|
## the sub! line in the Rakefile
|
11
11
|
s.name = 'papertrail'
|
12
|
-
s.version = '0.11.
|
13
|
-
s.date = '
|
12
|
+
s.version = '0.11.2'
|
13
|
+
s.date = '2023-05-24'
|
14
14
|
s.rubyforge_project = 'papertrail'
|
15
15
|
|
16
16
|
## Make sure your summary is short. The description may be as long
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: papertrail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Papertrail
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic
|
@@ -185,7 +185,7 @@ homepage: http://github.com/papertrail/papertrail-cli
|
|
185
185
|
licenses:
|
186
186
|
- MIT
|
187
187
|
metadata: {}
|
188
|
-
post_install_message:
|
188
|
+
post_install_message:
|
189
189
|
rdoc_options:
|
190
190
|
- "--charset=UTF-8"
|
191
191
|
require_paths:
|
@@ -201,9 +201,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
- !ruby/object:Gem::Version
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
|
-
|
205
|
-
|
206
|
-
signing_key:
|
204
|
+
rubygems_version: 3.4.10
|
205
|
+
signing_key:
|
207
206
|
specification_version: 2
|
208
207
|
summary: Command-line client for Papertrail hosted log management service.
|
209
208
|
test_files:
|