hammer_cli_foreman_resource_quota 0.2.0 → 0.2.1
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_foreman_resource_quota/resource_quota.rb +34 -9
- data/lib/hammer_cli_foreman_resource_quota/version.rb +1 -1
- data/locale/de/LC_MESSAGES/hammer_cli_foreman_resource_quota.mo +0 -0
- data/locale/de/hammer_cli_foreman_resource_quota.po +15 -8
- data/locale/en/LC_MESSAGES/hammer_cli_foreman_resource_quota.mo +0 -0
- data/locale/en/hammer_cli_foreman_resource_quota.po +8 -9
- data/locale/en_GB/LC_MESSAGES/hammer_cli_foreman_resource_quota.mo +0 -0
- data/locale/en_GB/hammer_cli_foreman_resource_quota.po +35 -30
- metadata +5 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4fe72ccb71ad90505dc4fb789f9f83d3f012a197793a61db25bbe1cf9a995899
|
|
4
|
+
data.tar.gz: fee04227dc069dd8d5c8a646a8a162f058bf2b08a5641209696e353ef0709781
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6c1e26f29ecc072fc3f30f9014097ae2228a0d85f697e3785d6f970658b402057f8d4d2059ef30c8c1d279efe6c3cc0f1483ba0911d7d0d9a3c9057092174f0
|
|
7
|
+
data.tar.gz: 872dab16ed3bea502b486157766bdc910935e83e65aa4fd724fef76fd80ad855fd5ed271f1cbbc54d81257040357e963e916b79264fcf8d6025599d2a7e7bcf9
|
|
@@ -25,7 +25,11 @@ module HammerCLIForemanResourceQuota
|
|
|
25
25
|
field :disk_gb, _('Disk space [GiB]')
|
|
26
26
|
field :number_of_hosts, _('Assigned hosts')
|
|
27
27
|
end
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
build_options do |o|
|
|
30
|
+
o.without('location_id', 'organization_id')
|
|
31
|
+
o.expand.except(:locations, :organizations)
|
|
32
|
+
end
|
|
29
33
|
end
|
|
30
34
|
|
|
31
35
|
class InfoCommand < HammerCLIForeman::InfoCommand
|
|
@@ -41,7 +45,11 @@ module HammerCLIForemanResourceQuota
|
|
|
41
45
|
end
|
|
42
46
|
end
|
|
43
47
|
end
|
|
44
|
-
|
|
48
|
+
|
|
49
|
+
build_options do |o|
|
|
50
|
+
o.without('location_id', 'organization_id')
|
|
51
|
+
o.expand.except(:locations, :organizations)
|
|
52
|
+
end
|
|
45
53
|
end
|
|
46
54
|
|
|
47
55
|
class CreateCommand < HammerCLIForeman::CreateCommand
|
|
@@ -52,7 +60,8 @@ module HammerCLIForemanResourceQuota
|
|
|
52
60
|
option '--disk-space', "Disk space", _('Maximum disk space in GiB'), attribute_name: :option_disk_gb, format: HammerCLI::Options::Normalizers::Number.new
|
|
53
61
|
|
|
54
62
|
build_options do |o|
|
|
55
|
-
o.
|
|
63
|
+
o.expand.except(:locations, :organizations)
|
|
64
|
+
o.without('memory_mb', 'disk_gb', 'location_id', 'organization_id')
|
|
56
65
|
end
|
|
57
66
|
end
|
|
58
67
|
|
|
@@ -60,7 +69,10 @@ module HammerCLIForemanResourceQuota
|
|
|
60
69
|
success_message _('Resource quota "%{name}" was deleted.')
|
|
61
70
|
failure_message _('Could not delete the resource quota')
|
|
62
71
|
|
|
63
|
-
build_options
|
|
72
|
+
build_options do |o|
|
|
73
|
+
o.without('location_id', 'organization_id')
|
|
74
|
+
o.expand.except(:locations, :organizations)
|
|
75
|
+
end
|
|
64
76
|
end
|
|
65
77
|
|
|
66
78
|
class UpdateCommand < HammerCLIForeman::UpdateCommand
|
|
@@ -94,7 +106,8 @@ module HammerCLIForemanResourceQuota
|
|
|
94
106
|
end
|
|
95
107
|
|
|
96
108
|
build_options do |o|
|
|
97
|
-
o.without('memory_mb', 'disk_gb')
|
|
109
|
+
o.without('memory_mb', 'disk_gb', 'location_id', 'organization_id')
|
|
110
|
+
o.expand.except(:locations, :organizations)
|
|
98
111
|
end
|
|
99
112
|
end
|
|
100
113
|
|
|
@@ -106,7 +119,10 @@ module HammerCLIForemanResourceQuota
|
|
|
106
119
|
field :name, _('Host name')
|
|
107
120
|
end
|
|
108
121
|
|
|
109
|
-
build_options
|
|
122
|
+
build_options do |o|
|
|
123
|
+
o.without('location_id', 'organization_id')
|
|
124
|
+
o.expand.except(:locations, :organizations)
|
|
125
|
+
end
|
|
110
126
|
end
|
|
111
127
|
|
|
112
128
|
class ShowUsergroupsCommand < ShowCommand
|
|
@@ -117,7 +133,10 @@ module HammerCLIForemanResourceQuota
|
|
|
117
133
|
field :name, _('Usergroup name')
|
|
118
134
|
end
|
|
119
135
|
|
|
120
|
-
build_options
|
|
136
|
+
build_options do |o|
|
|
137
|
+
o.without('location_id', 'organization_id')
|
|
138
|
+
o.expand.except(:locations, :organizations)
|
|
139
|
+
end
|
|
121
140
|
end
|
|
122
141
|
|
|
123
142
|
class ShowUsersCommand < ShowCommand
|
|
@@ -128,7 +147,10 @@ module HammerCLIForemanResourceQuota
|
|
|
128
147
|
field :login, _('User name')
|
|
129
148
|
end
|
|
130
149
|
|
|
131
|
-
build_options
|
|
150
|
+
build_options do |o|
|
|
151
|
+
o.without('location_id', 'organization_id')
|
|
152
|
+
o.expand.except(:locations, :organizations)
|
|
153
|
+
end
|
|
132
154
|
end
|
|
133
155
|
|
|
134
156
|
class UnresolvedResourcesCommand < HammerCLIForeman::Command
|
|
@@ -139,7 +161,10 @@ module HammerCLIForemanResourceQuota
|
|
|
139
161
|
field :missing_hosts, _('Missing hosts')
|
|
140
162
|
end
|
|
141
163
|
|
|
142
|
-
build_options
|
|
164
|
+
build_options do |o|
|
|
165
|
+
o.without('location_id', 'organization_id')
|
|
166
|
+
o.expand.except(:locations, :organizations)
|
|
167
|
+
end
|
|
143
168
|
end
|
|
144
169
|
|
|
145
170
|
autoload_subcommands
|
|
Binary file
|
|
@@ -3,13 +3,20 @@
|
|
|
3
3
|
# This file is distributed under the same license as the hammer_cli_foreman_resource_quota package.
|
|
4
4
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
5
|
#
|
|
6
|
+
# Translators:
|
|
7
|
+
# pdolinic, 2025
|
|
8
|
+
# mbacovsky <martin.bacovsky@gmail.com>, 2025
|
|
9
|
+
# Nadja Heitmann <nadjah@atix.de>, 2025
|
|
10
|
+
# Ettore Atalan <atalanttore@googlemail.com>, 2025
|
|
11
|
+
#
|
|
6
12
|
#, fuzzy
|
|
7
13
|
msgid ""
|
|
8
14
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: hammer_cli_foreman_resource_quota 0.0
|
|
15
|
+
"Project-Id-Version: hammer_cli_foreman_resource_quota 0.2.0\n"
|
|
10
16
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date:
|
|
17
|
+
"POT-Creation-Date: 2025-01-08 13:12+0000\n"
|
|
12
18
|
"PO-Revision-Date: 2025-01-07 14:47+0000\n"
|
|
19
|
+
"Last-Translator: Ettore Atalan <atalanttore@googlemail.com>, 2025\n"
|
|
13
20
|
"Language-Team: German (https://app.transifex.com/foreman/teams/114/de/)\n"
|
|
14
21
|
"MIME-Version: 1.0\n"
|
|
15
22
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
@@ -21,16 +28,16 @@ msgid "Resource quota id"
|
|
|
21
28
|
msgstr ""
|
|
22
29
|
|
|
23
30
|
msgid "Id"
|
|
24
|
-
msgstr ""
|
|
31
|
+
msgstr "ID"
|
|
25
32
|
|
|
26
33
|
msgid "Name"
|
|
27
|
-
msgstr ""
|
|
34
|
+
msgstr "Name"
|
|
28
35
|
|
|
29
36
|
msgid "Created at"
|
|
30
|
-
msgstr ""
|
|
37
|
+
msgstr "Erstellt am"
|
|
31
38
|
|
|
32
39
|
msgid "CPU cores"
|
|
33
|
-
msgstr ""
|
|
40
|
+
msgstr "CPU-Kerne"
|
|
34
41
|
|
|
35
42
|
msgid "Memory [MiB]"
|
|
36
43
|
msgstr ""
|
|
@@ -60,10 +67,10 @@ msgid "Could not create resource quota"
|
|
|
60
67
|
msgstr ""
|
|
61
68
|
|
|
62
69
|
msgid "Maximum memory in MiB"
|
|
63
|
-
msgstr ""
|
|
70
|
+
msgstr "Maximaler Speicher in MiB"
|
|
64
71
|
|
|
65
72
|
msgid "Maximum disk space in GiB"
|
|
66
|
-
msgstr ""
|
|
73
|
+
msgstr "Maximaler Festplattenplatz in GiB"
|
|
67
74
|
|
|
68
75
|
msgid "Resource quota [%{name}] was deleted."
|
|
69
76
|
msgstr ""
|
|
Binary file
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Copyright (C)
|
|
1
|
+
# SOME DESCRIPTIVE TITLE.
|
|
2
|
+
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
3
|
# This file is distributed under the same license as the hammer_cli_foreman_resource_quota package.
|
|
4
|
-
# FIRST AUTHOR <EMAIL@ADDRESS>,
|
|
4
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
5
|
#
|
|
6
6
|
msgid ""
|
|
7
7
|
msgstr ""
|
|
8
|
-
"Project-Id-Version: hammer_cli_foreman_resource_quota 0.0
|
|
8
|
+
"Project-Id-Version: hammer_cli_foreman_resource_quota 0.2.0\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: \n"
|
|
10
10
|
"POT-Creation-Date: 2025-01-08 13:12+0000\n"
|
|
11
|
-
"PO-Revision-Date: 2025-01-08 13:
|
|
11
|
+
"PO-Revision-Date: 2025-01-08 13:12+0000\n"
|
|
12
12
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
13
|
-
"Language-Team:
|
|
14
|
-
"Language:
|
|
13
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
14
|
+
"Language: \n"
|
|
15
15
|
"MIME-Version: 1.0\n"
|
|
16
16
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
17
17
|
"Content-Transfer-Encoding: 8bit\n"
|
|
18
|
-
"Plural-Forms: nplurals
|
|
19
|
-
"\n"
|
|
18
|
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
|
20
19
|
|
|
21
20
|
msgid "Resource quota id"
|
|
22
21
|
msgstr ""
|
|
Binary file
|
|
@@ -3,13 +3,18 @@
|
|
|
3
3
|
# This file is distributed under the same license as the hammer_cli_foreman_resource_quota package.
|
|
4
4
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
5
|
#
|
|
6
|
+
# Translators:
|
|
7
|
+
# 0868a4d1af5275b3f70b0a6dac4c99a4, 2025
|
|
8
|
+
# Andi Chandler <andi@gowling.com>, 2025
|
|
9
|
+
#
|
|
6
10
|
#, fuzzy
|
|
7
11
|
msgid ""
|
|
8
12
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: hammer_cli_foreman_resource_quota 0.0
|
|
13
|
+
"Project-Id-Version: hammer_cli_foreman_resource_quota 0.2.0\n"
|
|
10
14
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date:
|
|
15
|
+
"POT-Creation-Date: 2025-01-08 13:12+0000\n"
|
|
12
16
|
"PO-Revision-Date: 2025-01-07 14:47+0000\n"
|
|
17
|
+
"Last-Translator: Andi Chandler <andi@gowling.com>, 2025\n"
|
|
13
18
|
"Language-Team: English (United Kingdom) (https://app.transifex.com/foreman/"
|
|
14
19
|
"teams/114/en_GB/)\n"
|
|
15
20
|
"MIME-Version: 1.0\n"
|
|
@@ -19,85 +24,85 @@ msgstr ""
|
|
|
19
24
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
20
25
|
|
|
21
26
|
msgid "Resource quota id"
|
|
22
|
-
msgstr ""
|
|
27
|
+
msgstr "Resource quota id"
|
|
23
28
|
|
|
24
29
|
msgid "Id"
|
|
25
|
-
msgstr ""
|
|
30
|
+
msgstr "Id"
|
|
26
31
|
|
|
27
32
|
msgid "Name"
|
|
28
|
-
msgstr ""
|
|
33
|
+
msgstr "Name"
|
|
29
34
|
|
|
30
35
|
msgid "Created at"
|
|
31
|
-
msgstr ""
|
|
36
|
+
msgstr "Created at"
|
|
32
37
|
|
|
33
38
|
msgid "CPU cores"
|
|
34
|
-
msgstr ""
|
|
39
|
+
msgstr "CPU cores"
|
|
35
40
|
|
|
36
41
|
msgid "Memory [MiB]"
|
|
37
|
-
msgstr ""
|
|
42
|
+
msgstr "Memory [MiB]"
|
|
38
43
|
|
|
39
44
|
msgid "Disk space [GiB]"
|
|
40
|
-
msgstr ""
|
|
45
|
+
msgstr "Disk space [GiB]"
|
|
41
46
|
|
|
42
47
|
msgid "Assigned hosts"
|
|
43
|
-
msgstr ""
|
|
48
|
+
msgstr "Assigned hosts"
|
|
44
49
|
|
|
45
50
|
msgid "Number of users"
|
|
46
|
-
msgstr ""
|
|
51
|
+
msgstr "Number of users"
|
|
47
52
|
|
|
48
53
|
msgid "Number of usergroups"
|
|
49
|
-
msgstr ""
|
|
54
|
+
msgstr "Number of usergroups"
|
|
50
55
|
|
|
51
56
|
msgid "Number of missing hosts"
|
|
52
|
-
msgstr ""
|
|
57
|
+
msgstr "Number of missing hosts"
|
|
53
58
|
|
|
54
59
|
msgid "Utilization"
|
|
55
|
-
msgstr ""
|
|
60
|
+
msgstr "Utilisation"
|
|
56
61
|
|
|
57
62
|
msgid "Resource quota created."
|
|
58
|
-
msgstr ""
|
|
63
|
+
msgstr "Resource quota created."
|
|
59
64
|
|
|
60
65
|
msgid "Could not create resource quota"
|
|
61
|
-
msgstr ""
|
|
66
|
+
msgstr "Could not create resource quota"
|
|
62
67
|
|
|
63
68
|
msgid "Maximum memory in MiB"
|
|
64
|
-
msgstr ""
|
|
69
|
+
msgstr "Maximum memory in MiB"
|
|
65
70
|
|
|
66
71
|
msgid "Maximum disk space in GiB"
|
|
67
|
-
msgstr ""
|
|
72
|
+
msgstr "Maximum disk space in GiB"
|
|
68
73
|
|
|
69
74
|
msgid "Resource quota [%{name}] was deleted."
|
|
70
|
-
msgstr ""
|
|
75
|
+
msgstr "Resource quota [%{name}] was deleted."
|
|
71
76
|
|
|
72
77
|
msgid "Could not delete the resource quota"
|
|
73
|
-
msgstr ""
|
|
78
|
+
msgstr "Could not delete the resource quota"
|
|
74
79
|
|
|
75
80
|
msgid "Resource quota [%{name}] updated."
|
|
76
|
-
msgstr ""
|
|
81
|
+
msgstr "Resource quota [%{name}] updated."
|
|
77
82
|
|
|
78
83
|
msgid "Could not update the resource quota"
|
|
79
|
-
msgstr ""
|
|
84
|
+
msgstr "Could not update the resource quota"
|
|
80
85
|
|
|
81
86
|
msgid "Host name"
|
|
82
|
-
msgstr ""
|
|
87
|
+
msgstr "Host name"
|
|
83
88
|
|
|
84
89
|
msgid "Usergroup name"
|
|
85
|
-
msgstr ""
|
|
90
|
+
msgstr "Usergroup name"
|
|
86
91
|
|
|
87
92
|
msgid "User name"
|
|
88
|
-
msgstr ""
|
|
93
|
+
msgstr "User name"
|
|
89
94
|
|
|
90
95
|
msgid "Missing hosts"
|
|
91
|
-
msgstr ""
|
|
96
|
+
msgstr "Missing hosts"
|
|
92
97
|
|
|
93
98
|
msgid "Resource quota settings"
|
|
94
|
-
msgstr ""
|
|
99
|
+
msgstr "Resource quota settings"
|
|
95
100
|
|
|
96
101
|
msgid "Resource quota is optional"
|
|
97
|
-
msgstr ""
|
|
102
|
+
msgstr "Resource quota is optional"
|
|
98
103
|
|
|
99
104
|
msgid "Resource quota ids"
|
|
100
|
-
msgstr ""
|
|
105
|
+
msgstr "Resource quota ids"
|
|
101
106
|
|
|
102
107
|
msgid "Resource quota optional"
|
|
103
|
-
msgstr ""
|
|
108
|
+
msgstr "Resource quota optional"
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hammer_cli_foreman_resource_quota
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ATIX AG
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: hammer_cli_foreman
|
|
@@ -30,15 +29,14 @@ dependencies:
|
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.3
|
|
32
|
+
version: '0.3'
|
|
34
33
|
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.3
|
|
41
|
-
description:
|
|
39
|
+
version: '0.3'
|
|
42
40
|
email:
|
|
43
41
|
- info@atix.de
|
|
44
42
|
executables: []
|
|
@@ -70,7 +68,6 @@ homepage: https://www.orcharhino.com/
|
|
|
70
68
|
licenses:
|
|
71
69
|
- GPL-3.0-only
|
|
72
70
|
metadata: {}
|
|
73
|
-
post_install_message:
|
|
74
71
|
rdoc_options: []
|
|
75
72
|
require_paths:
|
|
76
73
|
- lib
|
|
@@ -88,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
88
85
|
- !ruby/object:Gem::Version
|
|
89
86
|
version: '0'
|
|
90
87
|
requirements: []
|
|
91
|
-
rubygems_version:
|
|
92
|
-
signing_key:
|
|
88
|
+
rubygems_version: 4.0.3
|
|
93
89
|
specification_version: 4
|
|
94
90
|
summary: Foreman Resource Quota plugin for Hammer CLI
|
|
95
91
|
test_files: []
|