foreman_maintain 1.13.4 → 1.13.5

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
  SHA256:
3
- metadata.gz: 47dd6828358b6e60006dc15848353d14a6ffd6fd5bcfc62bf6620e3a687422ed
4
- data.tar.gz: ceda8e721cb93453662c226c820cbe0931387673e4d03d78e16e64f2d52d310c
3
+ metadata.gz: bf0e0bd63ffc53a49811c596049e70f2e8ca088578fcb5c88bcd9e6006e7de25
4
+ data.tar.gz: e942f9db83429d09770067d37fbe63d974b295b21ff63ab1ddc9e26922a6d896
5
5
  SHA512:
6
- metadata.gz: dc4bb5fadb0df51bf32d328b7e4bd7a8dd17c1d78898b2e789ee2c69e1fce5a73e3b8e0335e03c3090fc24e8525435933d0ffd79f00c0fefa1bfa720b2641873
7
- data.tar.gz: eeafeff1413924cd397dc45e8355c1c9785e73e2ae9970e897a488693f433052ac635c18e80a9366328a2842329686718144c301066c46c9ff599854a4eb7ec4
6
+ metadata.gz: 5757b1fc0b9f1c25ecc2b729d10ca0c4ea754804e49e723fa56b7b5699c702fbb1365bce16830285143eb9ccb3e8a59ca00bf5193eb33872721ab6063662d1c3
7
+ data.tar.gz: d1fda696ef3f633fdcd9c250e1b721bc81fff0c888f9f5b1277333d37b1fbafd5c5a7510fd0d06b56cf74149ae7bda1d7fba3052e42702b362b97eede170eaab
@@ -1,9 +1,12 @@
1
1
  class Features::Installer < ForemanMaintain::Feature
2
+ CONFIG_DIRECTORY = '/etc/foreman-installer'.freeze
3
+ LAST_SCENARIO_YAML = File.join(CONFIG_DIRECTORY, 'scenarios.d/last_scenario.yaml').freeze
4
+
2
5
  metadata do
3
6
  label :installer
4
7
 
5
8
  confine do
6
- find_package('foreman-installer')
9
+ find_package('foreman-installer') && file_exists?(LAST_SCENARIO_YAML)
7
10
  end
8
11
  end
9
12
 
@@ -20,7 +23,7 @@ class Features::Installer < ForemanMaintain::Feature
20
23
  end
21
24
 
22
25
  def config_directory
23
- '/etc/foreman-installer'
26
+ CONFIG_DIRECTORY
24
27
  end
25
28
 
26
29
  def custom_hiera_file
@@ -87,6 +90,12 @@ class Features::Installer < ForemanMaintain::Feature
87
90
  end
88
91
 
89
92
  def last_scenario_config
90
- Pathname.new(File.join(config_directory, 'scenarios.d/last_scenario.yaml')).realpath.to_s
93
+ if File.exist?(last_scenario_yaml)
94
+ Pathname.new(last_scenario_yaml).realpath.to_s
95
+ end
96
+ end
97
+
98
+ def last_scenario_yaml
99
+ LAST_SCENARIO_YAML
91
100
  end
92
101
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '1.13.4'.freeze
2
+ VERSION = '1.13.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_maintain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.4
4
+ version: 1.13.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas