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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ecfc12b937e1b8bc24710fd502d74c02d377a8079f988d0bd9808803d34f402
4
- data.tar.gz: 16ee6d9436f10e2e202e57133e682ef3bfc769289dd136cf32d3349aabf01c01
3
+ metadata.gz: 371d837e9d492c4bcf29aff12cb2e58664ca6cc1210a6a6178914cd5396e26f7
4
+ data.tar.gz: b4b89499b50451114e0c1b1a9160d3323c2a1d1f371d6480596025a4b3e03107
5
5
  SHA512:
6
- metadata.gz: 199814efbd3a1457ca3e837971a3096f580fd74c79820a1656b87e7fbec903cfd1ecc81d8bf7de1c8b590cd0e85460d8b6ea3ebc30b9b983d0b13810b71f2796
7
- data.tar.gz: b7203a5e5dec250db16c4416b89bc42cf4da18cd2a2396556bd9ec4b5571c726f7b222ea8b89a4a9f9a66fd89d9a1a7ef2a8b1cfe667ec09dcb29f21df8bb6a9
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 = '/$HOME/anamo.conf.yml' #path = '/etc/anamo/conf.yml'
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
 
@@ -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 "/$HOME/anamo.conf.yml"
11
- @client_key = File.exists?("/$HOME/anamo.client.key") ? File.open("/$HOME/anamo.client.key", 'rb') { |f| f.read } : nil
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
@@ -37,7 +37,7 @@ module Anamo
37
37
 
38
38
  ret = {}
39
39
 
40
- config = YAML.load_file "/$HOME/anamo.conf.yml"
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 '/$HOME/anamo.conf.yml'
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
- "/$HOME/anamo.client.key"
159
+ "#{Dir.home}/anamo.client.key"
160
160
  end
161
161
 
162
162
  end
@@ -4,7 +4,7 @@ require 'yaml'
4
4
  if ARGV[0]
5
5
  path = ARGV[0]
6
6
  else
7
- path = '/$HOME/anamo.conf.yml'
7
+ path = "#{Dir.home}/anamo.conf.yml"
8
8
  end
9
9
 
10
10
  config = YAML.load_file(path)
@@ -1,3 +1,3 @@
1
1
  module Anamo
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.4"
3
3
  end
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.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-15 00:00:00.000000000 Z
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
- rubyforge_project:
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