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 +4 -4
- data/lib/hammer_cli_katello_bridge.rb +3 -4
- data/lib/hammer_cli_katello_bridge/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 650316688484c19388f991f9a50b1514a620ae54
|
|
4
|
+
data.tar.gz: 01fbbd1b5ea17c4e0e2393ee6bed60b7f2440b04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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])
|
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.
|
|
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-
|
|
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:
|
|
42
|
-
the commands.
|
|
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:
|