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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 637b14e2bd22eb7fd5995c9b19cd18cb83c22c64622c78dbf2a6c8d1af3236e9
4
- data.tar.gz: 3fe30b446da2631c7e7b5a8b57cc15c876dda55572cd47ed334b9c0ceaa0c18f
3
+ metadata.gz: d31b3a718b2ebff86c2326ff4def5e2a13773760be6a308c286d4628f8af38e6
4
+ data.tar.gz: 5dab5a624a7da18e82dbc7613e46647bce6ecfb81502a2f5040ad982190dd542
5
5
  SHA512:
6
- metadata.gz: be78ed45de4b238c550692844b9617bd8b68d18893a5ee29a75db5b88e5c239184d479afecf6cd25a5643bf9f9b0785ebc5f1750c871bf814177b5b31a980c94
7
- data.tar.gz: 1a9b9035b7737a9c5bb122a01265a4871a80542b8ce0d764de48cba47762adc5a621e1d888ea49a4cdb6fc803f5ea7ada30b7608097e9942ddfd8954524b1bfd
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 = "#{Dir.home}/anamo.conf.yml" #path = '/etc/anamo/conf.yml'
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: "#{Dir.home}/anamo/logs/anamo.log", #'/var/log/anamo',
22
+ dir: '/var/log/anamo',
25
23
  force_kill_waittime: 15,
26
24
  dir_mode: :system
27
25
 
@@ -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 "#{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
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
@@ -37,7 +37,7 @@ module Anamo
37
37
 
38
38
  ret = {}
39
39
 
40
- config = YAML.load_file "#{Dir.home}/anamo.conf.yml"
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 "#{Dir.home}/anamo.conf.yml"
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
- "#{Dir.home}/anamo.client.key"
159
+ "/$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 = "#{Dir.home}/anamo.conf.yml"
7
+ path = '/$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.1.89.5"
2
+ VERSION = "1.2"
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.1.89.5
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-16 00:00:00.000000000 Z
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
- rubygems_version: 3.1.4
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