foreman_maintain 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27f1643f7ff922cc3d9afb44a17f563b1fdb78e5
4
- data.tar.gz: de21e1b4eb82ec7a0e108bd83506faa2323b541c
3
+ metadata.gz: cc75bb9cfa1bb98c97e017ca86a5eb283be27ebc
4
+ data.tar.gz: ca4c72fb28c52a0a87e592730954d5b5c1d87106
5
5
  SHA512:
6
- metadata.gz: fac7f856bb7cc2ad7b285514ce1b843dadd2beb989e9b0aa91bad8b8f3b564d906ce9e77abe98856f8d6fc5f8820ea2e350ff161c9e5cc7601c4ebeac71984d4
7
- data.tar.gz: 90d43d34632fa926f07a0c437ad7f703ee407fb44f3ab8d4bf3d9a9ba142e42b1fe0b1e4987fbc8e5aa375f3b6f2e594334698de2332ef89620386d26276ff60
6
+ metadata.gz: 9acd9ac4a3df158361684415bf94e0c82a7d582b0fb98313a6d1b9a111ea9ab65d4476a7098b7dc9f3cca66e3363ed44ae14cae6113c846212d602e27607a413
7
+ data.tar.gz: 365618e5ab301e0ed0bcc530189e35d86525ac5707573d221e58f9540ca7779b2cbc1bb9cea7ed0bba2c8cb952cd47dfdfcf9e47d1c9218f30df21673cea7fc6
data/bin/foreman-maintain CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
4
4
 
5
5
  require 'foreman_maintain'
6
6
 
7
- CONFIG_FILE = '/etc/foreman-maintain/config/foreman_maintain.yml'.freeze
7
+ CONFIG_FILE = '/etc/foreman-maintain/foreman_maintain.yml'.freeze
8
8
 
9
9
  ForemanMaintain.setup
10
10
 
@@ -9,8 +9,8 @@
9
9
  # :definitions_dirs:
10
10
 
11
11
  # Mention file path to store data
12
- :storage_file: '/lib/foreman-maintain/data.yml'
12
+ :storage_file: '/var/lib/foreman-maintain/data.yml'
13
13
 
14
14
  # Mention directory to store whole backup data
15
- :backup_dir: '/lib/foreman-maintain'
15
+ :backup_dir: '/var/lib/foreman-maintain'
16
16
 
@@ -16,7 +16,7 @@ module ForemanMaintain
16
16
  @log_dir = find_dir_path(@options.fetch(:log_dir, 'log'))
17
17
  @storage_file = @options.fetch(:storage_file, 'data.yml')
18
18
  @backup_dir = find_dir_path(
19
- @options.fetch(:backup_dir, '/lib/foreman-maintain')
19
+ @options.fetch(:backup_dir, '/var/lib/foreman-maintain')
20
20
  )
21
21
  end
22
22
 
@@ -35,7 +35,7 @@ module ForemanMaintain
35
35
  end
36
36
 
37
37
  def config_file_path
38
- File.exist?(CONFIG_FILE) ? CONFIG_FILE : 'config/foreman_maintain.yml'
38
+ File.exist?(CONFIG_FILE) ? CONFIG_FILE : File.join(source_path, 'config/foreman_maintain.yml')
39
39
  end
40
40
 
41
41
  def source_path
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '0.0.4'.freeze
2
+ VERSION = '0.0.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_maintain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.4.5
200
+ rubygems_version: 2.5.2
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Foreman maintenance tool belt