anamo 1.1.89.5 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/anamo +2 -4
- data/lib/anamo/api.rb +2 -2
- data/lib/anamo/node/thor.rb +3 -3
- data/lib/anamo/runner.rb +1 -1
- data/lib/anamo/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d31b3a718b2ebff86c2326ff4def5e2a13773760be6a308c286d4628f8af38e6
|
4
|
+
data.tar.gz: 5dab5a624a7da18e82dbc7613e46647bce6ecfb81502a2f5040ad982190dd542
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 729bb04c281bf3fcc4ab8132bae9abdc2a8f91fc445aac7a850b6358f1d70358d915d591e233b45adb20d6c41b25463801242cbe5dc31ea27c3d223567ea2ffc
|
7
|
+
data.tar.gz: 3753c8ecfd7b17d2171360c50ec19a455cf7f9752c9d696fd99a84ba94afb662c70164552c7238237d200bab0889811c891254cbe571532e9f0e34e4dc532cd9
|
data/bin/anamo
CHANGED
@@ -7,11 +7,9 @@ if ARGV[2]
|
|
7
7
|
path = ARGV[2]
|
8
8
|
# otherwise use system path
|
9
9
|
else
|
10
|
-
path =
|
10
|
+
path = '/etc/anamo.conf.yml'
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
13
|
unless ARGV[0] == 'setup'
|
16
14
|
|
17
15
|
if File.exists? path
|
@@ -21,7 +19,7 @@ unless ARGV[0] == 'setup'
|
|
21
19
|
multiple: false,
|
22
20
|
monitor: true,
|
23
21
|
log_output: true,
|
24
|
-
dir:
|
22
|
+
dir: '/var/log/anamo',
|
25
23
|
force_kill_waittime: 15,
|
26
24
|
dir_mode: :system
|
27
25
|
|
data/lib/anamo/api.rb
CHANGED
@@ -7,8 +7,8 @@ module Anamo
|
|
7
7
|
|
8
8
|
def initialize
|
9
9
|
@api_base_url = 'https://app.anamo.io/api'
|
10
|
-
@config = YAML.load_file "
|
11
|
-
@client_key = File.exists?("
|
10
|
+
@config = YAML.load_file "/$HOME/anamo.conf.yml"
|
11
|
+
@client_key = File.exists?("/$HOME/anamo.client.key") ? File.open("/$HOME/anamo.client.key", 'rb') { |f| f.read } : nil
|
12
12
|
end
|
13
13
|
|
14
14
|
def make_url path
|
data/lib/anamo/node/thor.rb
CHANGED
@@ -37,7 +37,7 @@ module Anamo
|
|
37
37
|
|
38
38
|
ret = {}
|
39
39
|
|
40
|
-
config = YAML.load_file "
|
40
|
+
config = YAML.load_file "/$HOME/anamo.conf.yml"
|
41
41
|
|
42
42
|
#train
|
43
43
|
train = Train.create('local')
|
@@ -147,7 +147,7 @@ module Anamo
|
|
147
147
|
if defined? @config_file_path
|
148
148
|
@config_file_path
|
149
149
|
else
|
150
|
-
return
|
150
|
+
return '/$HOME/anamo.conf.yml'
|
151
151
|
end
|
152
152
|
end
|
153
153
|
|
@@ -156,7 +156,7 @@ module Anamo
|
|
156
156
|
private
|
157
157
|
|
158
158
|
def key_file
|
159
|
-
"
|
159
|
+
"/$HOME/anamo.client.key"
|
160
160
|
end
|
161
161
|
|
162
162
|
end
|
data/lib/anamo/runner.rb
CHANGED
data/lib/anamo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anamo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anamo, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -164,7 +164,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
|
167
|
+
rubyforge_project:
|
168
|
+
rubygems_version: 2.7.3
|
168
169
|
signing_key:
|
169
170
|
specification_version: 4
|
170
171
|
summary: This gem provides a beacon that collects system telemetry for a client and
|