hammer_cli_foreman_docker 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +28 -0
- data/lib/hammer_cli_foreman_docker/docker.rb +21 -0
- data/lib/hammer_cli_foreman_docker/docker_container.rb +126 -0
- data/lib/hammer_cli_foreman_docker/docker_image.rb +43 -0
- data/lib/hammer_cli_foreman_docker/docker_tag.rb +42 -0
- data/lib/hammer_cli_foreman_docker/i18n.rb +32 -0
- data/lib/hammer_cli_foreman_docker/version.rb +5 -0
- data/lib/hammer_cli_foreman_docker.rb +10 -0
- data/locale/Makefile +57 -0
- data/locale/README.md +18 -0
- data/locale/en/LC_MESSAGES/hammer_cli_foreman_docker.mo +0 -0
- data/locale/en/hammer_cli_foreman_docker.po +120 -0
- data/locale/hammer_cli_foreman_docker.pot +165 -0
- data/locale/zanata.xml +28 -0
- metadata +101 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: df975b1b47761fbe3ebe6050d4b062ea7f41808e
|
4
|
+
data.tar.gz: 0e0f70f5b128e2d35fa5d6292630fc7545e0d77e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8626425771dd7c206f3fc89ce27aa3a90ff59653f1cfc4f9b27dd76d87fb2945e7867d1efd97d09e691d120ed94ad2e1c01c4dfdeeb23d29161ee6bf61f69156
|
7
|
+
data.tar.gz: 74f070a023c1de6956c50930a44fe380febe9a393087967d4f05c00bedde506f36a002ec6ed6f86f592e07327849b9770ad041816162dd479ea5c8de1df2dc7b
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
hammer_cli_foreman_docker [![Build Status](https://travis-ci.org/theforeman/hammer_cli_foreman_docker.svg)](https://travis-ci.org/theforeman/hammer_cli_foreman_docker)
|
2
|
+
=========================================
|
3
|
+
|
4
|
+
This [Hammer CLI](https://github.com/theforeman/hammer-cli) plugin contains
|
5
|
+
set of commands for [foreman_docker](https://github.com/theforeman/foreman_docker),
|
6
|
+
a plugin to [Foreman](http://theforeman.org/) for Docker.
|
7
|
+
|
8
|
+
Check out the [release notes](doc/release_notes.md#release-notes) to see what's new in the latest version.
|
9
|
+
|
10
|
+
Configuration
|
11
|
+
-------------
|
12
|
+
|
13
|
+
Configuration is expected to be placed in one of hammer's configuration directories for plugins:
|
14
|
+
- `/etc/hammer/cli.modules.d/`
|
15
|
+
- `~/.hammer/cli.modules.d/`
|
16
|
+
- `./.config/cli.modules.d/` (config dir in CWD)
|
17
|
+
|
18
|
+
If you install `hammer_cli_foreman_docker` from source you'll have to copy the config file manually
|
19
|
+
from `config/foreman_docker.yml`.
|
20
|
+
|
21
|
+
See our [sample config file](https://github.com/theforeman/hammer_cli_foreman_docker/blob/master/config/foreman_docker.yml)
|
22
|
+
that lists all available configuration options with descriptions.
|
23
|
+
|
24
|
+
|
25
|
+
License
|
26
|
+
-------
|
27
|
+
|
28
|
+
This project is licensed under the GPLv3+.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'hammer_cli_foreman_docker/docker_container'
|
2
|
+
|
3
|
+
module HammerCLIForemanDocker
|
4
|
+
class DockerCommand < HammerCLIForeman::Command
|
5
|
+
if HammerCLIForeman.foreman_resource(:docker_images)
|
6
|
+
require 'hammer_cli_foreman_docker/docker_image'
|
7
|
+
subcommand 'image',
|
8
|
+
HammerCLIForemanDocker::DockerImageCommand.desc,
|
9
|
+
HammerCLIForemanDocker::DockerImageCommand
|
10
|
+
end
|
11
|
+
if HammerCLIForeman.foreman_resource(:docker_tags)
|
12
|
+
require 'hammer_cli_foreman_docker/docker_tag'
|
13
|
+
subcommand 'tag',
|
14
|
+
HammerCLIForemanDocker::DockerTagCommand.desc,
|
15
|
+
HammerCLIForemanDocker::DockerTagCommand
|
16
|
+
end
|
17
|
+
subcommand 'container',
|
18
|
+
HammerCLIForemanDocker::DockerContainerCommand.desc,
|
19
|
+
HammerCLIForemanDocker::DockerContainerCommand
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,126 @@
|
|
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 :name, _('Name')
|
13
|
+
field :repository_name, _('Image repository')
|
14
|
+
field :tag, _('Tag')
|
15
|
+
field :command, _('Command')
|
16
|
+
field nil, _('Compute resource'), Fields::SingleReference, :key => :compute_resource
|
17
|
+
end
|
18
|
+
|
19
|
+
build_options
|
20
|
+
end
|
21
|
+
|
22
|
+
class InfoCommand < HammerCLIForeman::InfoCommand
|
23
|
+
output ListCommand.output_definition do
|
24
|
+
field :entrypoint, _('Entrypoint')
|
25
|
+
field :cpu_set, _('CPU set')
|
26
|
+
field :cpu_shares, _('CPU shares')
|
27
|
+
field :memory, _('Memory (Bytes)')
|
28
|
+
field :tty, _('TTY'), Fields::Boolean
|
29
|
+
field :attach_stdin, _('Attach STDIN'), Fields::Boolean
|
30
|
+
field :attach_stdout, _('Attach STDOUT'), Fields::Boolean
|
31
|
+
field :attach_stderr, _('Attach STDERR'), Fields::Boolean
|
32
|
+
field nil, _('Registry'), Fields::SingleReference, :key => :registry
|
33
|
+
HammerCLIForeman::References.taxonomies(self)
|
34
|
+
HammerCLIForeman::References.timestamps(self)
|
35
|
+
end
|
36
|
+
|
37
|
+
build_options
|
38
|
+
end
|
39
|
+
|
40
|
+
class CreateCommand < HammerCLIForeman::CreateCommand
|
41
|
+
success_message _("Docker container created")
|
42
|
+
failure_message _("Could not create the container")
|
43
|
+
|
44
|
+
build_options
|
45
|
+
end
|
46
|
+
|
47
|
+
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
48
|
+
success_message _("Docker container deleted")
|
49
|
+
failure_message _("Could not delete the container")
|
50
|
+
|
51
|
+
build_options
|
52
|
+
end
|
53
|
+
|
54
|
+
class LogsCommand < HammerCLIForeman::InfoCommand
|
55
|
+
command_name 'logs'
|
56
|
+
action :logs
|
57
|
+
|
58
|
+
output do
|
59
|
+
field :logs, _('Logs')
|
60
|
+
end
|
61
|
+
|
62
|
+
def record_to_common_format(data)
|
63
|
+
# data heuristic fails, suppress the transformation
|
64
|
+
data
|
65
|
+
end
|
66
|
+
|
67
|
+
build_options
|
68
|
+
end
|
69
|
+
|
70
|
+
class StatusCommand < HammerCLIForeman::InfoCommand
|
71
|
+
command_name "status"
|
72
|
+
action :power
|
73
|
+
|
74
|
+
output do
|
75
|
+
field :running, _("Running"), Fields::Boolean
|
76
|
+
end
|
77
|
+
|
78
|
+
def request_params
|
79
|
+
params = super
|
80
|
+
params['power_action'] = 'status'
|
81
|
+
params
|
82
|
+
end
|
83
|
+
|
84
|
+
def record_to_common_format(data)
|
85
|
+
# data heuristic fails, suppress the transformation
|
86
|
+
data
|
87
|
+
end
|
88
|
+
|
89
|
+
build_options :without => :power_action
|
90
|
+
end
|
91
|
+
|
92
|
+
class StartCommand < HammerCLIForeman::SingleResourceCommand
|
93
|
+
command_name "start"
|
94
|
+
action :power
|
95
|
+
|
96
|
+
desc _("Power a container on")
|
97
|
+
success_message _("The container was started.")
|
98
|
+
|
99
|
+
def request_params
|
100
|
+
params = super
|
101
|
+
params['power_action'] = 'start'
|
102
|
+
params
|
103
|
+
end
|
104
|
+
|
105
|
+
build_options :without => :power_action
|
106
|
+
end
|
107
|
+
|
108
|
+
class StopCommand < HammerCLIForeman::SingleResourceCommand
|
109
|
+
command_name "stop"
|
110
|
+
action :power
|
111
|
+
|
112
|
+
desc _("Power a container off")
|
113
|
+
success_message _("The container was stopped.")
|
114
|
+
|
115
|
+
def request_params
|
116
|
+
params = super
|
117
|
+
params['power_action'] = 'stop'
|
118
|
+
params
|
119
|
+
end
|
120
|
+
|
121
|
+
build_options :without => :power_action
|
122
|
+
end
|
123
|
+
|
124
|
+
autoload_subcommands
|
125
|
+
end
|
126
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
begin
|
2
|
+
require 'hammer_cli_katello'
|
3
|
+
|
4
|
+
module HammerCLIForemanDocker
|
5
|
+
class DockerImageCommand < HammerCLIForeman::Command
|
6
|
+
resource :docker_images
|
7
|
+
command_name 'image'
|
8
|
+
desc _('Manage docker images')
|
9
|
+
|
10
|
+
class ListCommand < HammerCLIKatello::ListCommand
|
11
|
+
include ::HammerCLIKatello::LifecycleEnvironmentNameResolvable
|
12
|
+
output do
|
13
|
+
field :id, _("ID")
|
14
|
+
field :image_id, _("Image ID")
|
15
|
+
field :size, _("Size")
|
16
|
+
end
|
17
|
+
|
18
|
+
build_options do |o|
|
19
|
+
o.expand.including(:products, :organizations, :content_views)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
class InfoCommand < HammerCLIKatello::InfoCommand
|
24
|
+
output do
|
25
|
+
field :id, _("ID")
|
26
|
+
field :image_id, _("Image ID")
|
27
|
+
field :size, _("Size")
|
28
|
+
|
29
|
+
collection :tags, _("Tags") do
|
30
|
+
field :repository_id, _("Repository ID")
|
31
|
+
field :tag, _("Tag")
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
build_options
|
36
|
+
end
|
37
|
+
|
38
|
+
autoload_subcommands
|
39
|
+
end
|
40
|
+
end
|
41
|
+
rescue LoadError
|
42
|
+
warn _("'hammer_cli_katello' needs to be installed for %s command to work") % 'image'
|
43
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
begin
|
2
|
+
require 'hammer_cli_katello'
|
3
|
+
|
4
|
+
module HammerCLIForemanDocker
|
5
|
+
class DockerTagCommand < HammerCLIForeman::Command
|
6
|
+
resource :docker_tags
|
7
|
+
command_name 'tag'
|
8
|
+
desc _('Manage docker tags')
|
9
|
+
|
10
|
+
class ListCommand < HammerCLIKatello::ListCommand
|
11
|
+
include ::HammerCLIKatello::LifecycleEnvironmentNameResolvable
|
12
|
+
output do
|
13
|
+
field :id, _("ID")
|
14
|
+
field :tag, _("Tag")
|
15
|
+
field :repository_id, _("Repository ID")
|
16
|
+
end
|
17
|
+
|
18
|
+
build_options do |o|
|
19
|
+
o.expand.including(:products, :organizations, :content_views)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
class InfoCommand < HammerCLIKatello::InfoCommand
|
24
|
+
output do
|
25
|
+
field :id, _("ID")
|
26
|
+
field :tag, _("Tag")
|
27
|
+
field :repository_id, _("Repository ID")
|
28
|
+
|
29
|
+
from :image do
|
30
|
+
field :id, _("Docker Image ID")
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
build_options
|
35
|
+
end
|
36
|
+
|
37
|
+
autoload_subcommands
|
38
|
+
end
|
39
|
+
end
|
40
|
+
rescue LoadError
|
41
|
+
warn _("'hammer_cli_katello' needs to be installed for %s command to work") % 'tag'
|
42
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'hammer_cli'
|
2
|
+
|
3
|
+
module HammerCLIForemanDocker
|
4
|
+
module I18n
|
5
|
+
class LocaleDomain < HammerCLI::I18n::LocaleDomain
|
6
|
+
def translated_files
|
7
|
+
Dir.glob(File.join(File.dirname(__FILE__), '../**/*.rb'))
|
8
|
+
end
|
9
|
+
|
10
|
+
def locale_dir
|
11
|
+
File.join(File.dirname(__FILE__), '../../locale')
|
12
|
+
end
|
13
|
+
|
14
|
+
def domain_name
|
15
|
+
'hammer_cli_foreman_docker'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class SystemLocaleDomain < LocaleDomain
|
20
|
+
def locale_dir
|
21
|
+
'/usr/share/locale'
|
22
|
+
end
|
23
|
+
|
24
|
+
def domain_name
|
25
|
+
"#{super}@system"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
HammerCLI::I18n.add_domain(HammerCLIForemanDocker::I18n::LocaleDomain.new)
|
32
|
+
HammerCLI::I18n.add_domain(HammerCLIForemanDocker::I18n::SystemLocaleDomain.new)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'hammer_cli_foreman'
|
2
|
+
|
3
|
+
module HammerCLIForemanDocker
|
4
|
+
require 'hammer_cli_foreman_docker/i18n'
|
5
|
+
|
6
|
+
HammerCLI::MainCommand.lazy_subcommand("docker", _("Manipulate docker content"),
|
7
|
+
'HammerCLIForemanDocker::DockerCommand',
|
8
|
+
'hammer_cli_foreman_docker/docker'
|
9
|
+
)
|
10
|
+
end
|
data/locale/Makefile
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
#
|
2
|
+
# Makefile for PO merging and MO generation. More info in the README.
|
3
|
+
#
|
4
|
+
# make all-mo (default) - generate MO files
|
5
|
+
# make check - check translations using translate-tool
|
6
|
+
# make tx-update - download and merge translations from Transifex
|
7
|
+
# make clean - clean everything
|
8
|
+
#
|
9
|
+
DOMAIN = hammer_cli_foreman_docker
|
10
|
+
VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load("../hammer_cli_foreman_docker.gemspec");puts spec.version')
|
11
|
+
POTFILE = $(DOMAIN).pot
|
12
|
+
MOFILE = $(DOMAIN).mo
|
13
|
+
POFILES = $(shell find . -name '$(DOMAIN).po')
|
14
|
+
MOFILES = $(patsubst %.po,%.mo,$(POFILES))
|
15
|
+
POXFILES = $(patsubst %.po,%.pox,$(POFILES))
|
16
|
+
EDITFILES = $(patsubst %.po,%.edit.po,$(POFILES))
|
17
|
+
|
18
|
+
%.mo: %.po
|
19
|
+
mkdir -p $(shell dirname $@)/LC_MESSAGES
|
20
|
+
msgfmt -o $(shell dirname $@)/LC_MESSAGES/$(MOFILE) $<
|
21
|
+
|
22
|
+
# Generate MO files from PO files
|
23
|
+
all-mo: $(MOFILES)
|
24
|
+
|
25
|
+
# Check for malformed strings
|
26
|
+
%.pox: %.po
|
27
|
+
msgfmt -c $<
|
28
|
+
pofilter --nofuzzy -t variables -t blank -t urls -t emails -t long -t newlines \
|
29
|
+
-t endwhitespace -t endpunc -t puncspacing -t options -t printf -t validchars --gnome $< > $@
|
30
|
+
cat $@
|
31
|
+
! grep -q msgid $@
|
32
|
+
|
33
|
+
check: $(POXFILES)
|
34
|
+
|
35
|
+
# Unify duplicate translations
|
36
|
+
uniq-po:
|
37
|
+
for f in $(shell find ./ -name "*.po") ; do \
|
38
|
+
msguniq $$f -o $$f ; \
|
39
|
+
done
|
40
|
+
|
41
|
+
tx-pull: $(EDITFILES)
|
42
|
+
tx pull -f
|
43
|
+
for f in $(POFILES) ; do \
|
44
|
+
sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
|
45
|
+
done
|
46
|
+
|
47
|
+
# Extract strings and update the .pot, prepare .edit.po files
|
48
|
+
extract-strings:
|
49
|
+
bundle exec rake gettext:find
|
50
|
+
|
51
|
+
# Merge .edit.po into .po
|
52
|
+
update-po:
|
53
|
+
bundle exec rake gettext:find
|
54
|
+
|
55
|
+
tx-update: extract-strings tx-pull $(MOFILES)
|
56
|
+
git commit -m "i18n - extracting new, pulling from tx" ../locale
|
57
|
+
-echo Changes commited!
|
data/locale/README.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
Updating the translations
|
2
|
+
-------------------------
|
3
|
+
|
4
|
+
1. Check if there are any new languages with progress more than 50% on [transifex](https://www.transifex.com/projects/p/foreman/resource/hammer_clic_foreman_docker/). If so, do the following for each of the new languages:
|
5
|
+
|
6
|
+
```
|
7
|
+
mkdir locale/<lang>
|
8
|
+
cp locale/hammer_cli_foreman_docker.pot locale/<lang>/hammer_cli_foreman_docker.po
|
9
|
+
```
|
10
|
+
2. Make sure you have `transifex-client` installed
|
11
|
+
|
12
|
+
3. Update the translations. From GIT repo root directory run:
|
13
|
+
|
14
|
+
```
|
15
|
+
make -C locale tx-update
|
16
|
+
```
|
17
|
+
|
18
|
+
It will download translations from transifex, generates `mo` files, updates strings in `pot` file and wraps all the changes in a new commit. Transifex automatically updates its strings when the commit is pushed to Github.
|
Binary file
|
@@ -0,0 +1,120 @@
|
|
1
|
+
# English translations for hammer_cli_foreman_docker package.
|
2
|
+
# Copyright (C) 2015 THE PACKAGE'S COPYRIGHT HOLDER
|
3
|
+
# This file is distributed under the same license as the hammer_cli_foreman_docker package.
|
4
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2015.
|
5
|
+
#
|
6
|
+
msgid ""
|
7
|
+
msgstr ""
|
8
|
+
"Project-Id-Version: hammer_cli_foreman_docker 0.0.1\n"
|
9
|
+
"Report-Msgid-Bugs-To: \n"
|
10
|
+
"PO-Revision-Date: 2015-03-09 13:45+0100\n"
|
11
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
12
|
+
"Language-Team: English\n"
|
13
|
+
"Language: en\n"
|
14
|
+
"MIME-Version: 1.0\n"
|
15
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
16
|
+
"Content-Transfer-Encoding: 8bit\n"
|
17
|
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
18
|
+
"\n"
|
19
|
+
|
20
|
+
msgid "Manipulate docker content"
|
21
|
+
msgstr ""
|
22
|
+
|
23
|
+
msgid "Manage docker containers"
|
24
|
+
msgstr ""
|
25
|
+
|
26
|
+
msgid "Name"
|
27
|
+
msgstr ""
|
28
|
+
|
29
|
+
msgid "Image repository"
|
30
|
+
msgstr ""
|
31
|
+
|
32
|
+
msgid "Tag"
|
33
|
+
msgstr ""
|
34
|
+
|
35
|
+
msgid "Command"
|
36
|
+
msgstr ""
|
37
|
+
|
38
|
+
msgid "Compute resource"
|
39
|
+
msgstr ""
|
40
|
+
|
41
|
+
msgid "Entrypoint"
|
42
|
+
msgstr ""
|
43
|
+
|
44
|
+
msgid "CPU set"
|
45
|
+
msgstr ""
|
46
|
+
|
47
|
+
msgid "CPU shares"
|
48
|
+
msgstr ""
|
49
|
+
|
50
|
+
msgid "Memory (Bytes)"
|
51
|
+
msgstr ""
|
52
|
+
|
53
|
+
msgid "TTY"
|
54
|
+
msgstr ""
|
55
|
+
|
56
|
+
msgid "Attach STDIN"
|
57
|
+
msgstr ""
|
58
|
+
|
59
|
+
msgid "Attach STDOUT"
|
60
|
+
msgstr ""
|
61
|
+
|
62
|
+
msgid "Attach STDERR"
|
63
|
+
msgstr ""
|
64
|
+
|
65
|
+
msgid "Registry"
|
66
|
+
msgstr ""
|
67
|
+
|
68
|
+
msgid "Docker container created"
|
69
|
+
msgstr ""
|
70
|
+
|
71
|
+
msgid "Could not create the container"
|
72
|
+
msgstr ""
|
73
|
+
|
74
|
+
msgid "Docker container deleted"
|
75
|
+
msgstr ""
|
76
|
+
|
77
|
+
msgid "Could not delete the container"
|
78
|
+
msgstr ""
|
79
|
+
|
80
|
+
msgid "Logs"
|
81
|
+
msgstr ""
|
82
|
+
|
83
|
+
msgid "Running"
|
84
|
+
msgstr ""
|
85
|
+
|
86
|
+
msgid "Power a container on"
|
87
|
+
msgstr ""
|
88
|
+
|
89
|
+
msgid "The container was started."
|
90
|
+
msgstr ""
|
91
|
+
|
92
|
+
msgid "Power a container off"
|
93
|
+
msgstr ""
|
94
|
+
|
95
|
+
msgid "The container was stopped."
|
96
|
+
msgstr ""
|
97
|
+
|
98
|
+
msgid "Manage docker images"
|
99
|
+
msgstr ""
|
100
|
+
|
101
|
+
msgid "ID"
|
102
|
+
msgstr ""
|
103
|
+
|
104
|
+
msgid "Image ID"
|
105
|
+
msgstr ""
|
106
|
+
|
107
|
+
msgid "Size"
|
108
|
+
msgstr ""
|
109
|
+
|
110
|
+
msgid "Tags"
|
111
|
+
msgstr ""
|
112
|
+
|
113
|
+
msgid "Repository ID"
|
114
|
+
msgstr ""
|
115
|
+
|
116
|
+
msgid "Manage docker tags"
|
117
|
+
msgstr ""
|
118
|
+
|
119
|
+
msgid "Docker Image ID"
|
120
|
+
msgstr ""
|
@@ -0,0 +1,165 @@
|
|
1
|
+
# SOME DESCRIPTIVE TITLE.
|
2
|
+
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3
|
+
# This file is distributed under the same license as the hammer_cli_foreman_docker package.
|
4
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5
|
+
#
|
6
|
+
#, fuzzy
|
7
|
+
msgid ""
|
8
|
+
msgstr ""
|
9
|
+
"Project-Id-Version: hammer_cli_foreman_docker 0.0.1\n"
|
10
|
+
"Report-Msgid-Bugs-To: \n"
|
11
|
+
"POT-Creation-Date: 2015-03-09 13:45+0100\n"
|
12
|
+
"PO-Revision-Date: 2015-03-09 13:45+0100\n"
|
13
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15
|
+
"Language: \n"
|
16
|
+
"MIME-Version: 1.0\n"
|
17
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
18
|
+
"Content-Transfer-Encoding: 8bit\n"
|
19
|
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
20
|
+
|
21
|
+
#: ../lib/hammer_cli_foreman_docker.rb:6
|
22
|
+
msgid "Manipulate docker content"
|
23
|
+
msgstr ""
|
24
|
+
|
25
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:8
|
26
|
+
msgid "Manage docker containers"
|
27
|
+
msgstr ""
|
28
|
+
|
29
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:13
|
30
|
+
msgid "Name"
|
31
|
+
msgstr ""
|
32
|
+
|
33
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:14
|
34
|
+
msgid "Image repository"
|
35
|
+
msgstr ""
|
36
|
+
|
37
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:15
|
38
|
+
#: ../lib/hammer_cli_foreman_docker/docker_image.rb:27
|
39
|
+
#: ../lib/hammer_cli_foreman_docker/docker_tag.rb:10
|
40
|
+
#: ../lib/hammer_cli_foreman_docker/docker_tag.rb:22
|
41
|
+
msgid "Tag"
|
42
|
+
msgstr ""
|
43
|
+
|
44
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:16
|
45
|
+
msgid "Command"
|
46
|
+
msgstr ""
|
47
|
+
|
48
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:17
|
49
|
+
msgid "Compute resource"
|
50
|
+
msgstr ""
|
51
|
+
|
52
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:26
|
53
|
+
msgid "Entrypoint"
|
54
|
+
msgstr ""
|
55
|
+
|
56
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:27
|
57
|
+
msgid "CPU set"
|
58
|
+
msgstr ""
|
59
|
+
|
60
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:28
|
61
|
+
msgid "CPU shares"
|
62
|
+
msgstr ""
|
63
|
+
|
64
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:29
|
65
|
+
msgid "Memory (Bytes)"
|
66
|
+
msgstr ""
|
67
|
+
|
68
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:30
|
69
|
+
msgid "TTY"
|
70
|
+
msgstr ""
|
71
|
+
|
72
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:31
|
73
|
+
msgid "Attach STDIN"
|
74
|
+
msgstr ""
|
75
|
+
|
76
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:32
|
77
|
+
msgid "Attach STDOUT"
|
78
|
+
msgstr ""
|
79
|
+
|
80
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:33
|
81
|
+
msgid "Attach STDERR"
|
82
|
+
msgstr ""
|
83
|
+
|
84
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:34
|
85
|
+
msgid "Registry"
|
86
|
+
msgstr ""
|
87
|
+
|
88
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:43
|
89
|
+
msgid "Docker container created"
|
90
|
+
msgstr ""
|
91
|
+
|
92
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:44
|
93
|
+
msgid "Could not create the container"
|
94
|
+
msgstr ""
|
95
|
+
|
96
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:50
|
97
|
+
msgid "Docker container deleted"
|
98
|
+
msgstr ""
|
99
|
+
|
100
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:51
|
101
|
+
msgid "Could not delete the container"
|
102
|
+
msgstr ""
|
103
|
+
|
104
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:61
|
105
|
+
msgid "Logs"
|
106
|
+
msgstr ""
|
107
|
+
|
108
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:78
|
109
|
+
msgid "Running"
|
110
|
+
msgstr ""
|
111
|
+
|
112
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:100
|
113
|
+
msgid "Power a container on"
|
114
|
+
msgstr ""
|
115
|
+
|
116
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:101
|
117
|
+
msgid "The container was started."
|
118
|
+
msgstr ""
|
119
|
+
|
120
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:117
|
121
|
+
msgid "Power a container off"
|
122
|
+
msgstr ""
|
123
|
+
|
124
|
+
#: ../lib/hammer_cli_foreman_docker/docker_container.rb:118
|
125
|
+
msgid "The container was stopped."
|
126
|
+
msgstr ""
|
127
|
+
|
128
|
+
#: ../lib/hammer_cli_foreman_docker/docker_image.rb:5
|
129
|
+
msgid "Manage docker images"
|
130
|
+
msgstr ""
|
131
|
+
|
132
|
+
#: ../lib/hammer_cli_foreman_docker/docker_image.rb:9
|
133
|
+
#: ../lib/hammer_cli_foreman_docker/docker_image.rb:21
|
134
|
+
#: ../lib/hammer_cli_foreman_docker/docker_tag.rb:9
|
135
|
+
#: ../lib/hammer_cli_foreman_docker/docker_tag.rb:21
|
136
|
+
msgid "ID"
|
137
|
+
msgstr ""
|
138
|
+
|
139
|
+
#: ../lib/hammer_cli_foreman_docker/docker_image.rb:10
|
140
|
+
#: ../lib/hammer_cli_foreman_docker/docker_image.rb:22
|
141
|
+
msgid "Image ID"
|
142
|
+
msgstr ""
|
143
|
+
|
144
|
+
#: ../lib/hammer_cli_foreman_docker/docker_image.rb:11
|
145
|
+
#: ../lib/hammer_cli_foreman_docker/docker_image.rb:23
|
146
|
+
msgid "Size"
|
147
|
+
msgstr ""
|
148
|
+
|
149
|
+
#: ../lib/hammer_cli_foreman_docker/docker_image.rb:25
|
150
|
+
msgid "Tags"
|
151
|
+
msgstr ""
|
152
|
+
|
153
|
+
#: ../lib/hammer_cli_foreman_docker/docker_image.rb:26
|
154
|
+
#: ../lib/hammer_cli_foreman_docker/docker_tag.rb:11
|
155
|
+
#: ../lib/hammer_cli_foreman_docker/docker_tag.rb:23
|
156
|
+
msgid "Repository ID"
|
157
|
+
msgstr ""
|
158
|
+
|
159
|
+
#: ../lib/hammer_cli_foreman_docker/docker_tag.rb:5
|
160
|
+
msgid "Manage docker tags"
|
161
|
+
msgstr ""
|
162
|
+
|
163
|
+
#: ../lib/hammer_cli_foreman_docker/docker_tag.rb:26
|
164
|
+
msgid "Docker Image ID"
|
165
|
+
msgstr ""
|
data/locale/zanata.xml
ADDED
@@ -0,0 +1,28 @@
|
|
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_foreman_docker</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 map-from="de">de-DE</locale>
|
21
|
+
<locale map-from="es">es-ES</locale>
|
22
|
+
<locale map-from="pt_BR">pt-BR</locale>
|
23
|
+
<locale map-from="bn">bn-IN</locale>
|
24
|
+
<locale map-from="ta">ta-IN</locale>
|
25
|
+
<locale map-from="zh_CN">zh-Hans-CN</locale>
|
26
|
+
<locale map-from="zh_TW">zh-Hant-TW</locale>
|
27
|
+
</locales>
|
28
|
+
</config>
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hammer_cli_foreman_docker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David Davis
|
8
|
+
- Martin Bačovský
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: hammer_cli_foreman
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 0.1.2
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 0.1.2
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rubocop
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 0.28.0
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 0.28.0
|
56
|
+
description: Foreman Docker-related commands for Hammer CLI
|
57
|
+
email: daviddavis@redhat.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files:
|
61
|
+
- README.md
|
62
|
+
files:
|
63
|
+
- README.md
|
64
|
+
- lib/hammer_cli_foreman_docker.rb
|
65
|
+
- lib/hammer_cli_foreman_docker/docker.rb
|
66
|
+
- lib/hammer_cli_foreman_docker/docker_container.rb
|
67
|
+
- lib/hammer_cli_foreman_docker/docker_image.rb
|
68
|
+
- lib/hammer_cli_foreman_docker/docker_tag.rb
|
69
|
+
- lib/hammer_cli_foreman_docker/i18n.rb
|
70
|
+
- lib/hammer_cli_foreman_docker/version.rb
|
71
|
+
- locale/Makefile
|
72
|
+
- locale/README.md
|
73
|
+
- locale/en/LC_MESSAGES/hammer_cli_foreman_docker.mo
|
74
|
+
- locale/en/hammer_cli_foreman_docker.po
|
75
|
+
- locale/hammer_cli_foreman_docker.pot
|
76
|
+
- locale/zanata.xml
|
77
|
+
homepage: http://github.com/theforeman/hammer_cli_foreman_docker
|
78
|
+
licenses:
|
79
|
+
- GPL v3+
|
80
|
+
metadata: {}
|
81
|
+
post_install_message:
|
82
|
+
rdoc_options: []
|
83
|
+
require_paths:
|
84
|
+
- lib
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
requirements: []
|
96
|
+
rubyforge_project:
|
97
|
+
rubygems_version: 2.4.4
|
98
|
+
signing_key:
|
99
|
+
specification_version: 4
|
100
|
+
summary: Foreman Docker-related commands for Hammer
|
101
|
+
test_files: []
|