hammer_cli_katello 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 +8 -8
- data/lib/hammer_cli_katello.rb +26 -6
- data/lib/hammer_cli_katello/activation_key.rb +176 -0
- data/lib/hammer_cli_katello/associating_commands.rb +67 -0
- data/lib/hammer_cli_katello/capsule.rb +100 -0
- data/lib/hammer_cli_katello/commands.rb +55 -0
- data/lib/hammer_cli_katello/content_host.rb +90 -0
- data/lib/hammer_cli_katello/content_view.rb +193 -0
- data/lib/hammer_cli_katello/content_view_puppet_module.rb +74 -0
- data/lib/hammer_cli_katello/content_view_version.rb +81 -0
- data/lib/hammer_cli_katello/exception_handler.rb +40 -0
- data/lib/hammer_cli_katello/filter.rb +83 -0
- data/lib/hammer_cli_katello/filter_rule.rb +73 -0
- data/lib/hammer_cli_katello/gpg_key.rb +34 -56
- data/lib/hammer_cli_katello/host_collection.rb +91 -0
- data/lib/hammer_cli_katello/i18n.rb +24 -0
- data/lib/hammer_cli_katello/id_resolver.rb +39 -0
- data/lib/hammer_cli_katello/lifecycle_environment.rb +63 -45
- data/lib/hammer_cli_katello/organization.rb +27 -23
- data/lib/hammer_cli_katello/ping.rb +20 -23
- data/lib/hammer_cli_katello/product.rb +69 -62
- data/lib/hammer_cli_katello/puppet_module.rb +47 -0
- data/lib/hammer_cli_katello/repository.rb +147 -0
- data/lib/hammer_cli_katello/repository_set.rb +88 -0
- data/lib/hammer_cli_katello/subscription.rb +59 -12
- data/lib/hammer_cli_katello/sync_plan.rb +74 -0
- data/lib/hammer_cli_katello/version.rb +1 -1
- data/locale/hammer-cli-katello.pot +1215 -0
- data/locale/zanata.xml +29 -0
- metadata +28 -13
- data/lib/hammer_cli_katello/provider.rb +0 -68
- data/lib/hammer_cli_katello/resource.rb +0 -0
- data/lib/hammer_cli_katello/system.rb +0 -94
- data/lib/hammer_cli_katello/system_group.rb +0 -48
data/locale/zanata.xml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
+
<config xmlns="http://zanata.org/namespace/config/">
|
3
|
+
<url>https://translate.zanata.org/zanata/</url>
|
4
|
+
<project>satellite6-hammer-cli-katello</project>
|
5
|
+
<project-version>6.0</project-version>
|
6
|
+
<project-type>podir</project-type>
|
7
|
+
<locales>
|
8
|
+
<locale>fr</locale>
|
9
|
+
<locale>it</locale>
|
10
|
+
<locale>ja</locale>
|
11
|
+
<locale>ko</locale>
|
12
|
+
<locale>gu</locale>
|
13
|
+
<locale>hi</locale>
|
14
|
+
<locale>mr</locale>
|
15
|
+
<locale>or</locale>
|
16
|
+
<locale>ru</locale>
|
17
|
+
<locale>te</locale>
|
18
|
+
<locale>pa</locale>
|
19
|
+
<locale>kn</locale>
|
20
|
+
<locale>de</locale>
|
21
|
+
<locale>es</locale>
|
22
|
+
<locale>gl</locale>
|
23
|
+
<locale map-from="pt_BR">pt-BR</locale>
|
24
|
+
<locale map-from="bn">bn-IN</locale>
|
25
|
+
<locale map-from="ta">ta-IN</locale>
|
26
|
+
<locale map-from="zh_CN">zh-Hans-CN</locale>
|
27
|
+
<locale map-from="zh_TW">zh-Hant-TW</locale>
|
28
|
+
</locales>
|
29
|
+
</config>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_katello
|
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
|
- Katello
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hammer_cli_foreman
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: hammer_cli_foreman_tasks
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0.
|
40
|
+
version: 0.0.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,17 +173,33 @@ extensions: []
|
|
173
173
|
extra_rdoc_files: []
|
174
174
|
files:
|
175
175
|
- lib/hammer_cli_katello.rb
|
176
|
+
- lib/hammer_cli_katello/activation_key.rb
|
177
|
+
- lib/hammer_cli_katello/associating_commands.rb
|
178
|
+
- lib/hammer_cli_katello/capsule.rb
|
179
|
+
- lib/hammer_cli_katello/commands.rb
|
180
|
+
- lib/hammer_cli_katello/content_host.rb
|
181
|
+
- lib/hammer_cli_katello/content_view.rb
|
182
|
+
- lib/hammer_cli_katello/content_view_puppet_module.rb
|
183
|
+
- lib/hammer_cli_katello/content_view_version.rb
|
184
|
+
- lib/hammer_cli_katello/exception_handler.rb
|
185
|
+
- lib/hammer_cli_katello/filter.rb
|
186
|
+
- lib/hammer_cli_katello/filter_rule.rb
|
176
187
|
- lib/hammer_cli_katello/gpg_key.rb
|
188
|
+
- lib/hammer_cli_katello/host_collection.rb
|
189
|
+
- lib/hammer_cli_katello/i18n.rb
|
190
|
+
- lib/hammer_cli_katello/id_resolver.rb
|
177
191
|
- lib/hammer_cli_katello/lifecycle_environment.rb
|
178
192
|
- lib/hammer_cli_katello/organization.rb
|
179
193
|
- lib/hammer_cli_katello/ping.rb
|
180
194
|
- lib/hammer_cli_katello/product.rb
|
181
|
-
- lib/hammer_cli_katello/
|
182
|
-
- lib/hammer_cli_katello/
|
195
|
+
- lib/hammer_cli_katello/puppet_module.rb
|
196
|
+
- lib/hammer_cli_katello/repository.rb
|
197
|
+
- lib/hammer_cli_katello/repository_set.rb
|
183
198
|
- lib/hammer_cli_katello/subscription.rb
|
184
|
-
- lib/hammer_cli_katello/
|
185
|
-
- lib/hammer_cli_katello/system_group.rb
|
199
|
+
- lib/hammer_cli_katello/sync_plan.rb
|
186
200
|
- lib/hammer_cli_katello/version.rb
|
201
|
+
- locale/hammer-cli-katello.pot
|
202
|
+
- locale/zanata.xml
|
187
203
|
homepage: http://github.com/theforeman/hammer-cli-katello
|
188
204
|
licenses:
|
189
205
|
- GPL-3
|
@@ -204,9 +220,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
220
|
version: '0'
|
205
221
|
requirements: []
|
206
222
|
rubyforge_project:
|
207
|
-
rubygems_version: 2.2.
|
223
|
+
rubygems_version: 2.2.2
|
208
224
|
signing_key:
|
209
225
|
specification_version: 4
|
210
226
|
summary: Katello commands for Hammer
|
211
227
|
test_files: []
|
212
|
-
has_rdoc:
|
@@ -1,68 +0,0 @@
|
|
1
|
-
module HammerCLIKatello
|
2
|
-
class Provider < HammerCLI::Apipie::Command
|
3
|
-
resource KatelloApi::Resources::Provider
|
4
|
-
|
5
|
-
class ListCommand < HammerCLIForeman::ListCommand
|
6
|
-
output do
|
7
|
-
field :id, "ID"
|
8
|
-
field :name, "Name"
|
9
|
-
field :provider_type, "Type"
|
10
|
-
field :total_products, "Products"
|
11
|
-
field :total_repositories, "Repositories"
|
12
|
-
end
|
13
|
-
|
14
|
-
apipie_options
|
15
|
-
end
|
16
|
-
|
17
|
-
class InfoCommand < HammerCLIForeman::InfoCommand
|
18
|
-
output ListCommand.output_definition do
|
19
|
-
field :created_at, "Created at", Fields::Date
|
20
|
-
field :updated_at, "Updated at", Fields::Date
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
class CreateCommand < HammerCLIForeman::CreateCommand
|
25
|
-
success_message "Provider created"
|
26
|
-
failure_message "Could not create the provider"
|
27
|
-
|
28
|
-
apipie_options
|
29
|
-
end
|
30
|
-
|
31
|
-
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
32
|
-
success_message "Provider deleted"
|
33
|
-
failure_message "Could not delete the provider"
|
34
|
-
end
|
35
|
-
|
36
|
-
class UpdateCommand < HammerCLIForeman::UpdateCommand
|
37
|
-
success_message "Provider updated"
|
38
|
-
failure_message "Could not update the provider"
|
39
|
-
|
40
|
-
apipie_options
|
41
|
-
end
|
42
|
-
|
43
|
-
class RefreshManifestCommand < HammerCLIForeman::WriteCommand
|
44
|
-
action "refresh_manifest"
|
45
|
-
command_name "refresh_manifest"
|
46
|
-
|
47
|
-
success_message "Manifest is being refreshed"
|
48
|
-
failure_message "Could not refresh the manifest"
|
49
|
-
|
50
|
-
apipie_options
|
51
|
-
end
|
52
|
-
|
53
|
-
class DeleteManifestCommand < HammerCLIForeman::DeleteCommand
|
54
|
-
action "delete_manifest"
|
55
|
-
command_name "delete_manifest"
|
56
|
-
|
57
|
-
success_message "Manifest deleted"
|
58
|
-
failure_message "Could not delete the manifest"
|
59
|
-
|
60
|
-
apipie_options
|
61
|
-
end
|
62
|
-
|
63
|
-
autoload_subcommands
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
HammerCLI::MainCommand.subcommand 'provider', "Manipulate providers",
|
68
|
-
HammerCLIKatello::Provider
|
File without changes
|
@@ -1,94 +0,0 @@
|
|
1
|
-
module HammerCLIKatello
|
2
|
-
|
3
|
-
class SystemCommand < HammerCLI::AbstractCommand
|
4
|
-
|
5
|
-
class ListCommand < HammerCLIForeman::ListCommand
|
6
|
-
resource KatelloApi::Resources::System, :index
|
7
|
-
|
8
|
-
output do
|
9
|
-
field :uuid, "ID"
|
10
|
-
field :name, "Name"
|
11
|
-
end
|
12
|
-
|
13
|
-
apipie_options :without => [:environment_id]
|
14
|
-
end
|
15
|
-
|
16
|
-
class InfoCommand < HammerCLIForeman::InfoCommand
|
17
|
-
resource KatelloApi::Resources::System, :show
|
18
|
-
|
19
|
-
identifiers :id
|
20
|
-
|
21
|
-
output do
|
22
|
-
field :name, "Name"
|
23
|
-
field :id, "ID"
|
24
|
-
field :uuid, "UUID"
|
25
|
-
field :description, "Description"
|
26
|
-
field :location, "Location"
|
27
|
-
from :environment do
|
28
|
-
field :name, "Lifecycle Environment"
|
29
|
-
end
|
30
|
-
from :content_view do
|
31
|
-
field :name, "Content View"
|
32
|
-
end
|
33
|
-
field :entitlementStatus, "Entitlement Status"
|
34
|
-
field :releaseVer, "Release Version"
|
35
|
-
field :autoheal, "Autoheal"
|
36
|
-
end
|
37
|
-
|
38
|
-
apipie_options
|
39
|
-
end
|
40
|
-
|
41
|
-
class CreateCommand < HammerCLIForeman::CreateCommand
|
42
|
-
success_message "System created"
|
43
|
-
failure_message "Could not create system"
|
44
|
-
resource KatelloApi::Resources::System, :create
|
45
|
-
|
46
|
-
def request_params
|
47
|
-
super.tap do |params|
|
48
|
-
params['type'] = "system"
|
49
|
-
params['facts'] = {"uname.machine" => "unknown"}
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
apipie_options :without => [:facts, :type, :installed_products]
|
54
|
-
end
|
55
|
-
|
56
|
-
class UpdateCommand < HammerCLIForeman::UpdateCommand
|
57
|
-
success_message "System updated"
|
58
|
-
failure_message "Could not update system"
|
59
|
-
resource KatelloApi::Resources::System, :update
|
60
|
-
|
61
|
-
identifiers :id
|
62
|
-
|
63
|
-
apipie_options :without => [:facts, :type, :installed_products]
|
64
|
-
end
|
65
|
-
|
66
|
-
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
67
|
-
success_message "System deleted"
|
68
|
-
failure_message "Could not delete system"
|
69
|
-
resource KatelloApi::Resources::System, :destroy
|
70
|
-
|
71
|
-
identifiers :id
|
72
|
-
|
73
|
-
apipie_options
|
74
|
-
end
|
75
|
-
|
76
|
-
class TasksCommand < HammerCLIForeman::ListCommand
|
77
|
-
resource KatelloApi::Resources::System, :tasks
|
78
|
-
|
79
|
-
command_name "tasks"
|
80
|
-
|
81
|
-
identifiers :id
|
82
|
-
|
83
|
-
apipie_options
|
84
|
-
end
|
85
|
-
|
86
|
-
autoload_subcommands
|
87
|
-
end
|
88
|
-
|
89
|
-
cmd_name = "system"
|
90
|
-
cmd_desc = "manipulate systems on the server"
|
91
|
-
cmd_cls = HammerCLIKatello::SystemCommand
|
92
|
-
HammerCLI::MainCommand.subcommand(cmd_name, cmd_desc, cmd_cls)
|
93
|
-
|
94
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
module HammerCLIKatello
|
2
|
-
|
3
|
-
class SystemGroup < HammerCLI::AbstractCommand
|
4
|
-
class ListCommand < HammerCLIForeman::ListCommand
|
5
|
-
resource KatelloApi::Resources::SystemGroup, "index"
|
6
|
-
|
7
|
-
output do
|
8
|
-
field :id, "ID"
|
9
|
-
field :name, "Name"
|
10
|
-
field :max_systems, "Limit"
|
11
|
-
field :description, "Description"
|
12
|
-
end
|
13
|
-
|
14
|
-
apipie_options
|
15
|
-
end
|
16
|
-
|
17
|
-
class CreateCommand < HammerCLIForeman::CreateCommand
|
18
|
-
success_message "System group created"
|
19
|
-
failure_message "Could not create the system group"
|
20
|
-
resource KatelloApi::Resources::SystemGroup, "create"
|
21
|
-
|
22
|
-
apipie_options
|
23
|
-
end
|
24
|
-
|
25
|
-
class InfoCommand < HammerCLIForeman::InfoCommand
|
26
|
-
resource KatelloApi::Resources::SystemGroup, "show"
|
27
|
-
|
28
|
-
output ListCommand.output_definition do
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
class CopyCommand < HammerCLIForeman::CreateCommand
|
33
|
-
success_message "System group created"
|
34
|
-
failure_message "Could not create the system group"
|
35
|
-
command_name "copy"
|
36
|
-
action "copy"
|
37
|
-
|
38
|
-
validate_options do
|
39
|
-
all(:option_name).required unless option(:option_id).exist?
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
autoload_subcommands
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
HammerCLI::MainCommand.subcommand 'systemgroup', "Manipulate system groups",
|
48
|
-
HammerCLIKatello::SystemGroup
|