omnibus-ctl 0.6.4 → 0.6.9

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: c215684c3b196f84c40859cf894ce09d2a0a070d43042b0d59193cd784af4754
4
- data.tar.gz: ee14af6d515213397148b5c7457c8de3de5897adbee7ee17bf8318eedfbed12b
3
+ metadata.gz: 7197ee6e63058ae9f2fdfdda07cc4a562331488b4a6169ce0d88142aa74a0adf
4
+ data.tar.gz: bfefe15f23ccc0acc134f11a57fb0f6fd3d62b762f725204e5862c01b7815e28
5
5
  SHA512:
6
- metadata.gz: fea679725447c7a7bbce01f1f06fc54a63bd6daa1b8db79baf0cb0522caf5f93cd17673c732404917af1330a59a88d24121e6547a7b36bcbe06dea26a813520d
7
- data.tar.gz: 0e1de00e1f4226e1acbd1ecaee5abf622fdd3526a8fba794916f90a883b15546de4ef96bbb0b03a1eb402ad7cccc61e7295971989abd74785625e0682cda0a1e
6
+ metadata.gz: 65ffacc57db777f639ad233bb0e253374ffe61f6d81acbbaf78c0af02f3c974d97de135211032559958586b20e36b9d87065e231dd3a7b521926b26e7fd63e4e
7
+ data.tar.gz: ad9e3543a01fce12c742c7a05a128277ee84a0b516951c3d5d4fdd2de3d2fcd1dc61710443e73a5cc4f10c6a6ff5c87d06d2162fb9c4df568cac5362dd4a264d
@@ -1,5 +1,5 @@
1
1
  module Omnibus
2
2
  class Ctl
3
- VERSION = "0.6.4".freeze
3
+ VERSION = "0.6.9".freeze
4
4
  end
5
5
  end
data/lib/omnibus-ctl.rb CHANGED
@@ -15,6 +15,7 @@
15
15
  #
16
16
 
17
17
  require "omnibus-ctl/version"
18
+ require "chef-utils/dist" unless defined?(ChefUtils)
18
19
  require "json" unless defined?(JSON)
19
20
  require "fileutils" unless defined?(FileUtils)
20
21
 
@@ -437,8 +438,9 @@ EOM
437
438
 
438
439
  # returns nil when chef-server-running.json does not exist
439
440
  def running_config
440
- @running_config ||= if File.exist?("#{etc_path}/chef-server-running.json")
441
- JSON.parse(File.read("#{etc_path}/chef-server-running.json"))
441
+ fname = "#{etc_path}/#{::ChefUtils::Dist::Server::SERVER}-running.json"
442
+ @running_config ||= if File.exist?(fname)
443
+ JSON.parse(File.read(fname))
442
444
  end
443
445
  end
444
446
 
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnibus-ctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-20 00:00:00.000000000 Z
11
+ date: 2022-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: chef-utils
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 16.5.54
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 16.5.54
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: chefstyle
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - '='
18
32
  - !ruby/object:Gem::Version
19
- version: 2.0.9
33
+ version: 2.2.0
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - '='
25
39
  - !ruby/object:Gem::Version
26
- version: 2.0.9
40
+ version: 2.2.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement