linux_admin 0.9.2 → 0.9.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12f8ca59b83d84ac17fb97fd72540b502b966f7a
|
|
4
|
+
data.tar.gz: 443b64b0f5e12ebfa030cb3c5bd8fc41898c28db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 912f52607ed959ded43125555481b6f97374d8beb01911347713575ffb5db21cee92eef5491851e605febc75edd57c7a39254d6a350bd0ce3fab7ccbd5590f9f
|
|
7
|
+
data.tar.gz: 130cfe11cc9d9ca737ba53deb874216e83a73fff8d4df8b7611a9dea0ed45816cfde2bb9e03235e4dbab1c0743c10644f7c179976d456767d59f4b30f3097bc7
|
|
@@ -32,7 +32,6 @@ class LinuxAdmin
|
|
|
32
32
|
|
|
33
33
|
params = {"--username=" => options[:username], "--password=" => options[:password]}
|
|
34
34
|
params.merge!(proxy_params(options))
|
|
35
|
-
params["--serverurl="] = options[:server_url] if options[:server_url]
|
|
36
35
|
|
|
37
36
|
result = run!(cmd, :params => params)
|
|
38
37
|
parse_output(result.output).index_by {|i| i[:name]}
|
|
@@ -47,8 +46,7 @@ class LinuxAdmin
|
|
|
47
46
|
|
|
48
47
|
params = {"--username=" => options[:username], "--password=" => options[:password]}
|
|
49
48
|
params.merge!(proxy_params(options))
|
|
50
|
-
params["--org="]
|
|
51
|
-
params["--serverurl="] = options[:server_url] if options[:server_url]
|
|
49
|
+
params["--org="] = options[:org] if options[:server_url] && options[:org]
|
|
52
50
|
|
|
53
51
|
run!(cmd, :params => params)
|
|
54
52
|
end
|
data/lib/linux_admin/version.rb
CHANGED
|
@@ -34,7 +34,6 @@ describe LinuxAdmin::SubscriptionManager do
|
|
|
34
34
|
|
|
35
35
|
it "with server_url" do
|
|
36
36
|
run_params.store_path(:params, "--org=", "IT")
|
|
37
|
-
run_params.store_path(:params, "--serverurl=", "https://server.url")
|
|
38
37
|
base_options.store_path(:server_url, "https://server.url")
|
|
39
38
|
|
|
40
39
|
expect_any_instance_of(described_class).to receive(:run!).once.with("subscription-manager register", run_params)
|
|
@@ -128,7 +127,7 @@ describe LinuxAdmin::SubscriptionManager do
|
|
|
128
127
|
|
|
129
128
|
context "#organizations" do
|
|
130
129
|
it "with valid credentials" do
|
|
131
|
-
run_options = ["subscription-manager orgs", {:params=>{"--username="=>"SomeUser", "--password="=>"SomePass", "--proxy="=>"1.2.3.4", "--proxyuser="=>"ProxyUser", "--proxypassword="=>"ProxyPass"
|
|
130
|
+
run_options = ["subscription-manager orgs", {:params=>{"--username="=>"SomeUser", "--password="=>"SomePass", "--proxy="=>"1.2.3.4", "--proxyuser="=>"ProxyUser", "--proxypassword="=>"ProxyPass"}}]
|
|
132
131
|
|
|
133
132
|
expect(LinuxAdmin::Rpm).to receive(:upgrade).with("http://192.168.1.1/pub/katello-ca-consumer-latest.noarch.rpm")
|
|
134
133
|
expect_any_instance_of(described_class).to receive(:run!).once.with(*run_options).and_return(double(:output => sample_output("subscription_manager/output_orgs")))
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: linux_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brandon Dunne
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2014-
|
|
16
|
+
date: 2014-12-03 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: bundler
|