hammer_cli_katello_bridge 0.0.6 → 0.0.7

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: a2fd462b962a4e607a5b117577b71e1ad882b0ce
4
- data.tar.gz: 233588cca1d34ba4ba59938f0f2b304cb3b412c5
3
+ metadata.gz: 2cba5452eae83c2e4ec8fc2a7b25c37905dd8a4f
4
+ data.tar.gz: 62be1af6737ff88d329b261d38c7bec0c2d127d2
5
5
  SHA512:
6
- metadata.gz: c624cdfb7d3d2005f5b942c650e21bac5b2eca8bde25c402e11db9ad709361a16bfc65aa0273ee10ea6e20773305628b47aa4d242a8e8b17d5f9beca4cfe25d6
7
- data.tar.gz: 4e55d581848a0c6d286d39afb3db471be32c6ada69eb734f117d875640494c5587898143fc9b84341786328c8420ed88bb8da506572b91163460238319a2f7f8
6
+ metadata.gz: 5c50fad3d7dbdaf92ee9a5a95676220e249a7a866d871798a30b55ae91d1248be1910d794912476729e1aabbd653edb45bd0734e2887ce9b2146e366c38e264c
7
+ data.tar.gz: 776b9807c6cc17f9ba2ec9aa5572d6a6fdcbdbc3822ac507f9176d3c364aacc26ea81cd00a0c77df928807cfc8e12386f146b6bfdd4d2f1707ac91539594f410
@@ -78,8 +78,8 @@ module HammerCLIKatelloBridge
78
78
  end
79
79
 
80
80
 
81
- spec = Gem::Specification.find_by_name("hammer_cli_katello_bridge")
82
- json_file = HammerCLI::Settings.get(:katello_bridge, :cli_description) || File.join(spec.gem_dir, 'katello.json')
81
+ default_json_path = File.realpath(File.join(__FILE__, '../../katello.json'))
82
+ json_file = HammerCLI::Settings.get(:katello_bridge, :cli_description) || default_json_path
83
83
  raise RuntimeError.new("Path to katello CLI description is not set or file does not exist") unless (json_file && File.exist?(json_file))
84
84
  self.load_commands(File.read(json_file)).each do |command|
85
85
  HammerCLI::MainCommand.subcommand!(command[:name], command[:desc], command[:cls])
@@ -1,5 +1,5 @@
1
1
  module HammerCLIKatelloBridge
2
2
  def self.version
3
- @version ||= Gem::Version.new '0.0.6'
3
+ @version ||= Gem::Version.new '0.0.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_katello_bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Bačovský
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-09 00:00:00.000000000 Z
11
+ date: 2013-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json