hammer_cli_foreman_docker 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/hammer_cli_foreman_docker.rb +2 -0
- data/lib/hammer_cli_foreman_docker/docker.rb +1 -10
- data/lib/hammer_cli_foreman_docker/docker_manifest.rb +17 -6
- data/lib/hammer_cli_foreman_docker/docker_tag.rb +4 -1
- data/lib/hammer_cli_foreman_docker/version.rb +1 -1
- data/locale/de/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/de/hammer_cli_foreman_docker.edit.po +202 -0
- data/locale/de/hammer_cli_foreman_docker.po +94 -49
- data/locale/de/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/en/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/en/hammer_cli_foreman_docker.edit.po +194 -0
- data/locale/en/hammer_cli_foreman_docker.po +1 -1
- data/locale/en/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/en_GB/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/en_GB/hammer_cli_foreman_docker.edit.po +202 -0
- data/locale/en_GB/hammer_cli_foreman_docker.po +92 -47
- data/locale/en_GB/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/es/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/es/hammer_cli_foreman_docker.edit.po +202 -0
- data/locale/es/hammer_cli_foreman_docker.po +93 -48
- data/locale/es/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/fr/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/fr/hammer_cli_foreman_docker.edit.po +202 -0
- data/locale/fr/hammer_cli_foreman_docker.po +93 -48
- data/locale/fr/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/it/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/it/hammer_cli_foreman_docker.edit.po +195 -0
- data/locale/it/hammer_cli_foreman_docker.po +106 -61
- data/locale/it/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/ja/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/ja/hammer_cli_foreman_docker.edit.po +202 -0
- data/locale/ja/hammer_cli_foreman_docker.po +104 -59
- data/locale/ja/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/ko/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/ko/hammer_cli_foreman_docker.edit.po +195 -0
- data/locale/ko/hammer_cli_foreman_docker.po +121 -76
- data/locale/ko/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/pt_BR/hammer_cli_foreman_docker.edit.po +195 -0
- data/locale/pt_BR/hammer_cli_foreman_docker.po +124 -77
- data/locale/pt_BR/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/ru/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/ru/hammer_cli_foreman_docker.edit.po +199 -0
- data/locale/ru/hammer_cli_foreman_docker.po +113 -67
- data/locale/ru/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/zh_CN/hammer_cli_foreman_docker.edit.po +195 -0
- data/locale/zh_CN/hammer_cli_foreman_docker.po +122 -77
- data/locale/zh_CN/hammer_cli_foreman_docker.po.time_stamp +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/zh_TW/hammer_cli_foreman_docker.edit.po +195 -0
- data/locale/zh_TW/hammer_cli_foreman_docker.po +121 -76
- data/locale/zh_TW/hammer_cli_foreman_docker.po.time_stamp +0 -0
- metadata +27 -6
- data/lib/hammer_cli_foreman_docker/docker_container.rb +0 -128
- data/lib/hammer_cli_foreman_docker/docker_registry.rb +0 -58
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_foreman_docker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Davis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hammer_cli_foreman
|
@@ -66,40 +66,62 @@ files:
|
|
66
66
|
- doc/release_notes.md
|
67
67
|
- lib/hammer_cli_foreman_docker.rb
|
68
68
|
- lib/hammer_cli_foreman_docker/docker.rb
|
69
|
-
- lib/hammer_cli_foreman_docker/docker_container.rb
|
70
69
|
- lib/hammer_cli_foreman_docker/docker_manifest.rb
|
71
|
-
- lib/hammer_cli_foreman_docker/docker_registry.rb
|
72
70
|
- lib/hammer_cli_foreman_docker/docker_tag.rb
|
73
71
|
- lib/hammer_cli_foreman_docker/i18n.rb
|
74
72
|
- lib/hammer_cli_foreman_docker/version.rb
|
75
73
|
- locale/Makefile
|
76
74
|
- locale/README.md
|
77
75
|
- locale/de/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
76
|
+
- locale/de/hammer_cli_foreman_docker.edit.po
|
78
77
|
- locale/de/hammer_cli_foreman_docker.po
|
78
|
+
- locale/de/hammer_cli_foreman_docker.po.time_stamp
|
79
79
|
- locale/en/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
80
|
+
- locale/en/hammer_cli_foreman_docker.edit.po
|
80
81
|
- locale/en/hammer_cli_foreman_docker.po
|
82
|
+
- locale/en/hammer_cli_foreman_docker.po.time_stamp
|
81
83
|
- locale/en_GB/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
84
|
+
- locale/en_GB/hammer_cli_foreman_docker.edit.po
|
82
85
|
- locale/en_GB/hammer_cli_foreman_docker.po
|
86
|
+
- locale/en_GB/hammer_cli_foreman_docker.po.time_stamp
|
83
87
|
- locale/es/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
88
|
+
- locale/es/hammer_cli_foreman_docker.edit.po
|
84
89
|
- locale/es/hammer_cli_foreman_docker.po
|
90
|
+
- locale/es/hammer_cli_foreman_docker.po.time_stamp
|
85
91
|
- locale/fr/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
92
|
+
- locale/fr/hammer_cli_foreman_docker.edit.po
|
86
93
|
- locale/fr/hammer_cli_foreman_docker.po
|
94
|
+
- locale/fr/hammer_cli_foreman_docker.po.time_stamp
|
87
95
|
- locale/hammer_cli_foreman_docker.pot
|
88
96
|
- locale/it/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
97
|
+
- locale/it/hammer_cli_foreman_docker.edit.po
|
89
98
|
- locale/it/hammer_cli_foreman_docker.po
|
99
|
+
- locale/it/hammer_cli_foreman_docker.po.time_stamp
|
90
100
|
- locale/ja/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
101
|
+
- locale/ja/hammer_cli_foreman_docker.edit.po
|
91
102
|
- locale/ja/hammer_cli_foreman_docker.po
|
103
|
+
- locale/ja/hammer_cli_foreman_docker.po.time_stamp
|
92
104
|
- locale/ko/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
105
|
+
- locale/ko/hammer_cli_foreman_docker.edit.po
|
93
106
|
- locale/ko/hammer_cli_foreman_docker.po
|
107
|
+
- locale/ko/hammer_cli_foreman_docker.po.time_stamp
|
94
108
|
- locale/pt_BR/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
109
|
+
- locale/pt_BR/hammer_cli_foreman_docker.edit.po
|
95
110
|
- locale/pt_BR/hammer_cli_foreman_docker.po
|
111
|
+
- locale/pt_BR/hammer_cli_foreman_docker.po.time_stamp
|
96
112
|
- locale/ru/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
113
|
+
- locale/ru/hammer_cli_foreman_docker.edit.po
|
97
114
|
- locale/ru/hammer_cli_foreman_docker.po
|
115
|
+
- locale/ru/hammer_cli_foreman_docker.po.time_stamp
|
98
116
|
- locale/zanata.xml
|
99
117
|
- locale/zh_CN/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
118
|
+
- locale/zh_CN/hammer_cli_foreman_docker.edit.po
|
100
119
|
- locale/zh_CN/hammer_cli_foreman_docker.po
|
120
|
+
- locale/zh_CN/hammer_cli_foreman_docker.po.time_stamp
|
101
121
|
- locale/zh_TW/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
122
|
+
- locale/zh_TW/hammer_cli_foreman_docker.edit.po
|
102
123
|
- locale/zh_TW/hammer_cli_foreman_docker.po
|
124
|
+
- locale/zh_TW/hammer_cli_foreman_docker.po.time_stamp
|
103
125
|
homepage: http://github.com/theforeman/hammer_cli_foreman_docker
|
104
126
|
licenses:
|
105
127
|
- GPL v3+
|
@@ -120,9 +142,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
142
|
version: '0'
|
121
143
|
requirements: []
|
122
144
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.7.10
|
124
146
|
signing_key:
|
125
147
|
specification_version: 4
|
126
148
|
summary: Foreman Docker-related commands for Hammer
|
127
149
|
test_files: []
|
128
|
-
has_rdoc:
|
@@ -1,128 +0,0 @@
|
|
1
|
-
require 'hammer_cli'
|
2
|
-
require 'hammer_cli_foreman'
|
3
|
-
|
4
|
-
module HammerCLIForemanDocker
|
5
|
-
class DockerContainerCommand < HammerCLIForeman::Command
|
6
|
-
resource :containers
|
7
|
-
command_name 'container'
|
8
|
-
desc _('Manage docker containers')
|
9
|
-
|
10
|
-
class ListCommand < HammerCLIForeman::ListCommand
|
11
|
-
output do
|
12
|
-
field :id, _('ID')
|
13
|
-
field :name, _('Name')
|
14
|
-
field :repository_name, _('Image repository')
|
15
|
-
field :tag, _('Tag')
|
16
|
-
field :command, _('Command')
|
17
|
-
field nil, _('Compute resource'), Fields::SingleReference, :key => :compute_resource
|
18
|
-
end
|
19
|
-
|
20
|
-
build_options
|
21
|
-
end
|
22
|
-
|
23
|
-
class InfoCommand < HammerCLIForeman::InfoCommand
|
24
|
-
output ListCommand.output_definition do
|
25
|
-
field :uuid, _('UUID')
|
26
|
-
field :entrypoint, _('Entrypoint')
|
27
|
-
field :cpu_set, _('CPU set')
|
28
|
-
field :cpu_shares, _('CPU shares')
|
29
|
-
field :memory, _('Memory (Bytes)')
|
30
|
-
field :tty, _('TTY'), Fields::Boolean
|
31
|
-
field :attach_stdin, _('Attach STDIN'), Fields::Boolean
|
32
|
-
field :attach_stdout, _('Attach STDOUT'), Fields::Boolean
|
33
|
-
field :attach_stderr, _('Attach STDERR'), Fields::Boolean
|
34
|
-
field nil, _('Registry'), Fields::SingleReference, :key => :registry
|
35
|
-
HammerCLIForeman::References.taxonomies(self)
|
36
|
-
HammerCLIForeman::References.timestamps(self)
|
37
|
-
end
|
38
|
-
|
39
|
-
build_options
|
40
|
-
end
|
41
|
-
|
42
|
-
class CreateCommand < HammerCLIForeman::CreateCommand
|
43
|
-
success_message _("Docker container created")
|
44
|
-
failure_message _("Could not create the container")
|
45
|
-
|
46
|
-
build_options
|
47
|
-
end
|
48
|
-
|
49
|
-
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
50
|
-
success_message _("Docker container deleted")
|
51
|
-
failure_message _("Could not delete the container")
|
52
|
-
|
53
|
-
build_options
|
54
|
-
end
|
55
|
-
|
56
|
-
class LogsCommand < HammerCLIForeman::InfoCommand
|
57
|
-
command_name 'logs'
|
58
|
-
action :logs
|
59
|
-
|
60
|
-
output do
|
61
|
-
field :logs, _('Logs')
|
62
|
-
end
|
63
|
-
|
64
|
-
def record_to_common_format(data)
|
65
|
-
# data heuristic fails, suppress the transformation
|
66
|
-
data
|
67
|
-
end
|
68
|
-
|
69
|
-
build_options
|
70
|
-
end
|
71
|
-
|
72
|
-
class StatusCommand < HammerCLIForeman::InfoCommand
|
73
|
-
command_name "status"
|
74
|
-
action :power
|
75
|
-
|
76
|
-
output do
|
77
|
-
field :running, _("Running"), Fields::Boolean
|
78
|
-
end
|
79
|
-
|
80
|
-
def request_params
|
81
|
-
params = super
|
82
|
-
params['power_action'] = 'status'
|
83
|
-
params
|
84
|
-
end
|
85
|
-
|
86
|
-
def record_to_common_format(data)
|
87
|
-
# data heuristic fails, suppress the transformation
|
88
|
-
data
|
89
|
-
end
|
90
|
-
|
91
|
-
build_options :without => :power_action
|
92
|
-
end
|
93
|
-
|
94
|
-
class StartCommand < HammerCLIForeman::SingleResourceCommand
|
95
|
-
command_name "start"
|
96
|
-
action :power
|
97
|
-
|
98
|
-
desc _("Power a container on")
|
99
|
-
success_message _("The container was started.")
|
100
|
-
|
101
|
-
def request_params
|
102
|
-
params = super
|
103
|
-
params['power_action'] = 'start'
|
104
|
-
params
|
105
|
-
end
|
106
|
-
|
107
|
-
build_options :without => :power_action
|
108
|
-
end
|
109
|
-
|
110
|
-
class StopCommand < HammerCLIForeman::SingleResourceCommand
|
111
|
-
command_name "stop"
|
112
|
-
action :power
|
113
|
-
|
114
|
-
desc _("Power a container off")
|
115
|
-
success_message _("The container was stopped.")
|
116
|
-
|
117
|
-
def request_params
|
118
|
-
params = super
|
119
|
-
params['power_action'] = 'stop'
|
120
|
-
params
|
121
|
-
end
|
122
|
-
|
123
|
-
build_options :without => :power_action
|
124
|
-
end
|
125
|
-
|
126
|
-
autoload_subcommands
|
127
|
-
end
|
128
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
require 'hammer_cli'
|
2
|
-
require 'hammer_cli_foreman'
|
3
|
-
|
4
|
-
module HammerCLIForemanDocker
|
5
|
-
class DockerRegistryCommand < HammerCLIForeman::Command
|
6
|
-
resource :registries
|
7
|
-
command_name 'registry'
|
8
|
-
desc _('Manage docker registries')
|
9
|
-
|
10
|
-
class ListCommand < HammerCLIForeman::ListCommand
|
11
|
-
output do
|
12
|
-
field :id, _("ID")
|
13
|
-
field :name, _('Name')
|
14
|
-
field :url, _('URL')
|
15
|
-
end
|
16
|
-
|
17
|
-
build_options
|
18
|
-
end
|
19
|
-
|
20
|
-
class InfoCommand < HammerCLIForeman::InfoCommand
|
21
|
-
output do
|
22
|
-
field :id, _("ID")
|
23
|
-
field :name, _('Name')
|
24
|
-
field :url, _('URL')
|
25
|
-
field :description, _('Description')
|
26
|
-
field :username, _('Username')
|
27
|
-
|
28
|
-
HammerCLIForeman::References.taxonomies(self)
|
29
|
-
HammerCLIForeman::References.timestamps(self)
|
30
|
-
end
|
31
|
-
|
32
|
-
build_options
|
33
|
-
end
|
34
|
-
|
35
|
-
class CreateCommand < HammerCLIForeman::CreateCommand
|
36
|
-
success_message _("Docker registry created")
|
37
|
-
failure_message _("Could not create the registry")
|
38
|
-
|
39
|
-
build_options
|
40
|
-
end
|
41
|
-
|
42
|
-
class UpdateCommand < HammerCLIForeman::UpdateCommand
|
43
|
-
success_message _("Docker registry updated")
|
44
|
-
failure_message _("Could not update the registry")
|
45
|
-
|
46
|
-
build_options
|
47
|
-
end
|
48
|
-
|
49
|
-
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
50
|
-
success_message _("Docker registry deleted")
|
51
|
-
failure_message _("Could not delete the registry")
|
52
|
-
|
53
|
-
build_options
|
54
|
-
end
|
55
|
-
|
56
|
-
autoload_subcommands
|
57
|
-
end
|
58
|
-
end
|