hammer_cli_katello_bridge 0.0.3 → 0.0.4

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: a9711ad104d47a673c287e0f428217bdb7ceeb9d
4
- data.tar.gz: a54156ccb83ad90dab757ce5433f1308658f9653
3
+ metadata.gz: 650316688484c19388f991f9a50b1514a620ae54
4
+ data.tar.gz: 01fbbd1b5ea17c4e0e2393ee6bed60b7f2440b04
5
5
  SHA512:
6
- metadata.gz: 30a4e95a507bd30b6613763d50a2558e770e74aa4bd081a82776ca41d397d53de87e6eca3796bb8732f9e03c274ab87e2948fdb10cdb6267bd5746dd3d8a9b27
7
- data.tar.gz: c2b683d4adbd6c52378383ec0e79a8b9e5ce62d1c481d2e9ee9417fd0d1f0f515702926a86ad38f7254b4e6851648b38a5dcec06226259b729ad27db4c6ff227
6
+ metadata.gz: d34920fae8bb22bd4b162870138a53f02dd640eaf88cdf82775d1b1c1c8eac0f873dd72fb58dc80cea9bcaff0cc1af9902097213f93b5d60feaf418b0ba29b8f
7
+ data.tar.gz: fc07f2082a4cad7c8f2d7b4fd9c1eb9a61b4b2d08a8237a3d805e5b023921940ef5173b39172a360b2efa1d28730ae864c2e79381f60685a9fa63096860268ac
@@ -1,5 +1,4 @@
1
1
  require 'hammer_cli'
2
- require 'pry'
3
2
  require 'json'
4
3
  require 'logging'
5
4
 
@@ -34,8 +33,8 @@ module HammerCLIKatelloBridge
34
33
  def katello args
35
34
  cml = args.join(' ')
36
35
 
37
- username = context[:username]
38
- password = context[:password]
36
+ username = context[:username] || ENV['KATELLO_USERNAME'] || HammerCLI::Settings.get(:katello_bridge, :username)
37
+ password = context[:password] || ENV['KATELLO_PASSWORD'] || HammerCLI::Settings.get(:katello_bridge, :password)
39
38
 
40
39
  username_param = username ? "-u #{username}" : ''
41
40
  password_param = password ? "-p #{password}" : ''
@@ -80,7 +79,7 @@ module HammerCLIKatelloBridge
80
79
 
81
80
 
82
81
 
83
- json_file = HammerCLI::Settings[:katello_cli_description]
82
+ json_file = HammerCLI::Settings.get(:katello_bridge, :cli_description)
84
83
  raise "Path to katello CLI description is not set or file does not exist" unless (json_file && File.exist?(json_file))
85
84
  self.load_commands(File.read(json_file)).each do |command|
86
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.3'
3
+ @version ||= Gem::Version.new '0.0.4'
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.3
4
+ version: 0.0.4
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-09-26 00:00:00.000000000 Z
11
+ date: 2013-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -38,8 +38,8 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: "Katello commands for Hammer CLI. This plugin use Katello CLI to run
42
- the commands. \n"
41
+ description: |
42
+ Katello commands for Hammer CLI. This plugin use Katello CLI to run the commands.
43
43
  email: mbacovsk@redhat.com
44
44
  executables: []
45
45
  extensions: []
@@ -71,3 +71,4 @@ signing_key:
71
71
  specification_version: 4
72
72
  summary: Katello commands for hammer-cli
73
73
  test_files: []
74
+ has_rdoc: