anamo 1.2.2 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/anamo +4 -2
- 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 +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 371d837e9d492c4bcf29aff12cb2e58664ca6cc1210a6a6178914cd5396e26f7
|
4
|
+
data.tar.gz: b4b89499b50451114e0c1b1a9160d3323c2a1d1f371d6480596025a4b3e03107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a26efd2431f3c9160088ec40e297feac25594635b363cd7ad518a74e3376d2d8b3741dbc5c372e8119dbd95810105f267d319a8bfed2ffc06d2d36163e716d5
|
7
|
+
data.tar.gz: bdf92097f10a037d96521c9253aff5c05af6e4135ecf1c4bef4f1b5ffbbc5d0e20975cb9a267cf88d1b52962519c4784e1264704caacd58cc9f9818e8cbb32fe
|
data/bin/anamo
CHANGED
@@ -7,9 +7,11 @@ if ARGV[2]
|
|
7
7
|
path = ARGV[2]
|
8
8
|
# otherwise use system path
|
9
9
|
else
|
10
|
-
path =
|
10
|
+
path = "#{Dir.home}/anamo.conf.yml" #path = '/etc/anamo/conf.yml'
|
11
11
|
end
|
12
12
|
|
13
|
+
|
14
|
+
|
13
15
|
unless ARGV[0] == 'setup'
|
14
16
|
|
15
17
|
if File.exists? path
|
@@ -19,7 +21,7 @@ unless ARGV[0] == 'setup'
|
|
19
21
|
multiple: false,
|
20
22
|
monitor: true,
|
21
23
|
log_output: true,
|
22
|
-
dir: '/var/log/anamo',
|
24
|
+
dir: "#{Dir.home}/anamo/logs/anamo.log", #'/var/log/anamo',
|
23
25
|
force_kill_waittime: 15,
|
24
26
|
dir_mode: :system
|
25
27
|
|
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 "#{Dir.home}/anamo.conf.yml"
|
11
|
+
@client_key = File.exists?("#{Dir.home}/anamo.client.key") ? File.open("#{Dir.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 "#{Dir.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 "#{Dir.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
|
+
"#{Dir.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.2.
|
4
|
+
version: 1.2.4
|
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-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -164,8 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
|
168
|
-
rubygems_version: 2.7.3
|
167
|
+
rubygems_version: 3.1.4
|
169
168
|
signing_key:
|
170
169
|
specification_version: 4
|
171
170
|
summary: This gem provides a beacon that collects system telemetry for a client and
|