hammer_cli_foreman_resource_quota 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ec8e8133b42b57cbe0819b2c187b2112a9b29c1085cf5ea02d088cb5a824101
4
- data.tar.gz: a09e4e49e89fa8cd0ea02700a0604cea01963f41789c13b6a4277ea2f3900178
3
+ metadata.gz: 187e58e0253c31ae050e968e2db0383c2b2a653a66e4c4891320ba8c69a83912
4
+ data.tar.gz: 37b0ad55ea93acea85ce902bd59698431e3d1e90c4dc4b2d7602381e2e46f52f
5
5
  SHA512:
6
- metadata.gz: ddabdef05cccdfc5b2c922406ab06ca05bd8c7e702ecf960fa69947b9ce4b90b0c058874a2875e93d0a64ccf23d6a47deba129940e0b222e1a48c0e059717a34
7
- data.tar.gz: 338417a648bf493ff0733c5c2693f567cb4cc730c39c93c04e632b6fa88ea5b220065dcea666514a9ddbd8e59ce129d4b72c6692cdf27d7c3d5c55897e4ad06a
6
+ metadata.gz: 876479005613a1ff47bd37a839a73e7135952910dac0cfebdf0238b0e00243e4a3b930fa4079e2b5aae102ff528275f50b0acf84dad1ff7d4bd1a5463490b5ee
7
+ data.tar.gz: 3c9d60c8e8e32be9f123ef28253975bba69f110b79428b603daf3b6ee073f976e190636fe485668d293cd2e79b057bab4116ebdec6eaac187af6216141b11d88
@@ -1,6 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HammerCLIForemanResourceQuota
4
+ class ShowCommand < HammerCLIForeman::Command
5
+ output do
6
+ field :id, _('Id')
7
+ end
8
+
9
+ def adapter
10
+ :table
11
+ end
12
+ end
13
+
4
14
  class ResourceQuotaCommand < HammerCLIForeman::Command
5
15
  resource :resource_quota
6
16
 
@@ -9,6 +19,7 @@ module HammerCLIForemanResourceQuota
9
19
  field :id, _('Id')
10
20
  field :name, _('Name')
11
21
  field :created_at, _('Created at')
22
+ field :description, _('Description')
12
23
  field :cpu_cores, _('CPU cores')
13
24
  field :memory_mb, _('Memory [MiB]')
14
25
  field :disk_gb, _('Disk space [GiB]')
@@ -64,16 +75,6 @@ module HammerCLIForemanResourceQuota
64
75
  end
65
76
  end
66
77
 
67
- class ShowCommand < HammerCLIForeman::Command
68
- output do
69
- field :id, _('Id')
70
- end
71
-
72
- def adapter
73
- :table
74
- end
75
- end
76
-
77
78
  class ShowHostsCommand < ShowCommand
78
79
  action :hosts
79
80
  command_name 'show-hosts'
@@ -7,7 +7,7 @@ module HammerCLIForemanResourceQuota
7
7
  output do
8
8
  label N_('Resource quota settings') do
9
9
  field :resource_quota_is_optional, _('Resource quota is optional'), Fields::Boolean
10
- field :resource_quota_ids, N_('Resource quota ids')
10
+ field :resource_quota_ids, N_('Resource quota IDs')
11
11
  end
12
12
  end
13
13
  end
@@ -15,7 +15,7 @@ module HammerCLIForemanResourceQuota
15
15
  class ListCommand < HammerCLIForeman::ListCommand
16
16
  output do
17
17
  field :resource_quota_is_optional, _('Resource quota optional'), Fields::Boolean
18
- field :resource_quota_ids, N_('Resource quota ids')
18
+ field :resource_quota_ids, N_('Resource quota IDs')
19
19
  end
20
20
  end
21
21
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module HammerCLIForemanResourceQuota
4
4
  def self.version
5
- @version ||= Gem::Version.new '0.0.1'
5
+ @version ||= Gem::Version.new '0.1.0'
6
6
  end
7
7
  end
@@ -4,11 +4,11 @@ module HammerCLIForemanResourceQuota
4
4
  require 'hammer_cli_foreman/host'
5
5
 
6
6
  require 'hammer_cli_foreman_resource_quota/version'
7
+ require 'hammer_cli_foreman_resource_quota/i18n'
8
+ require 'hammer_cli_foreman_resource_quota/resource_quota'
7
9
  require 'hammer_cli_foreman_resource_quota/user'
8
10
  require 'hammer_cli_foreman_resource_quota/usergroup'
9
11
  require 'hammer_cli_foreman_resource_quota/host'
10
- require 'hammer_cli_foreman_resource_quota/i18n'
11
- require 'hammer_cli_foreman_resource_quota/resource_quota'
12
12
  require 'hammer_cli_foreman_resource_quota/command_extensions'
13
13
 
14
14
  HammerCLI::MainCommand.lazy_subcommand(
@@ -0,0 +1,102 @@
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_resource_quota package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: hammer_cli_foreman_resource_quota 0.0.1\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2023-07-12 14:40+0000\n"
12
+ "PO-Revision-Date: 2025-01-07 14:47+0000\n"
13
+ "Language-Team: German (https://app.transifex.com/foreman/teams/114/de/)\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Language: de\n"
18
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
+
20
+ msgid "Resource quota id"
21
+ msgstr ""
22
+
23
+ msgid "Id"
24
+ msgstr ""
25
+
26
+ msgid "Name"
27
+ msgstr ""
28
+
29
+ msgid "Created at"
30
+ msgstr ""
31
+
32
+ msgid "CPU cores"
33
+ msgstr ""
34
+
35
+ msgid "Memory [MiB]"
36
+ msgstr ""
37
+
38
+ msgid "Disk space [GiB]"
39
+ msgstr ""
40
+
41
+ msgid "Assigned hosts"
42
+ msgstr ""
43
+
44
+ msgid "Number of users"
45
+ msgstr ""
46
+
47
+ msgid "Number of usergroups"
48
+ msgstr ""
49
+
50
+ msgid "Number of missing hosts"
51
+ msgstr ""
52
+
53
+ msgid "Utilization"
54
+ msgstr ""
55
+
56
+ msgid "Resource quota created."
57
+ msgstr ""
58
+
59
+ msgid "Could not create resource quota"
60
+ msgstr ""
61
+
62
+ msgid "Maximum memory in MiB"
63
+ msgstr ""
64
+
65
+ msgid "Maximum disk space in GiB"
66
+ msgstr ""
67
+
68
+ msgid "Resource quota [%{name}] was deleted."
69
+ msgstr ""
70
+
71
+ msgid "Could not delete the resource quota"
72
+ msgstr ""
73
+
74
+ msgid "Resource quota [%{name}] updated."
75
+ msgstr ""
76
+
77
+ msgid "Could not update the resource quota"
78
+ msgstr ""
79
+
80
+ msgid "Host name"
81
+ msgstr ""
82
+
83
+ msgid "Usergroup name"
84
+ msgstr ""
85
+
86
+ msgid "User name"
87
+ msgstr ""
88
+
89
+ msgid "Missing hosts"
90
+ msgstr ""
91
+
92
+ msgid "Resource quota settings"
93
+ msgstr ""
94
+
95
+ msgid "Resource quota is optional"
96
+ msgstr ""
97
+
98
+ msgid "Resource quota ids"
99
+ msgstr ""
100
+
101
+ msgid "Resource quota optional"
102
+ msgstr ""
@@ -0,0 +1,103 @@
1
+ # English translations for hammer_cli_foreman_resource_quota package.
2
+ # Copyright (C) 2025 THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the hammer_cli_foreman_resource_quota package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: hammer_cli_foreman_resource_quota 0.0.1\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2025-01-08 13:12+0000\n"
11
+ "PO-Revision-Date: 2025-01-08 13:29+0000\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: English\n"
14
+ "Language: en\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Plural-Forms: nplurals=; plural=;\n"
19
+ "\n"
20
+
21
+ msgid "Resource quota id"
22
+ msgstr ""
23
+
24
+ msgid "Id"
25
+ msgstr ""
26
+
27
+ msgid "Name"
28
+ msgstr ""
29
+
30
+ msgid "Created at"
31
+ msgstr ""
32
+
33
+ msgid "CPU cores"
34
+ msgstr ""
35
+
36
+ msgid "Memory [MiB]"
37
+ msgstr ""
38
+
39
+ msgid "Disk space [GiB]"
40
+ msgstr ""
41
+
42
+ msgid "Assigned hosts"
43
+ msgstr ""
44
+
45
+ msgid "Number of users"
46
+ msgstr ""
47
+
48
+ msgid "Number of usergroups"
49
+ msgstr ""
50
+
51
+ msgid "Number of missing hosts"
52
+ msgstr ""
53
+
54
+ msgid "Utilization"
55
+ msgstr ""
56
+
57
+ msgid "Resource quota created."
58
+ msgstr ""
59
+
60
+ msgid "Could not create resource quota"
61
+ msgstr ""
62
+
63
+ msgid "Maximum memory in MiB"
64
+ msgstr ""
65
+
66
+ msgid "Maximum disk space in GiB"
67
+ msgstr ""
68
+
69
+ msgid "Resource quota [%{name}] was deleted."
70
+ msgstr ""
71
+
72
+ msgid "Could not delete the resource quota"
73
+ msgstr ""
74
+
75
+ msgid "Resource quota [%{name}] updated."
76
+ msgstr ""
77
+
78
+ msgid "Could not update the resource quota"
79
+ msgstr ""
80
+
81
+ msgid "Host name"
82
+ msgstr ""
83
+
84
+ msgid "Usergroup name"
85
+ msgstr ""
86
+
87
+ msgid "User name"
88
+ msgstr ""
89
+
90
+ msgid "Missing hosts"
91
+ msgstr ""
92
+
93
+ msgid "Resource quota settings"
94
+ msgstr ""
95
+
96
+ msgid "Resource quota is optional"
97
+ msgstr ""
98
+
99
+ msgid "Resource quota ids"
100
+ msgstr ""
101
+
102
+ msgid "Resource quota optional"
103
+ msgstr ""
@@ -0,0 +1,103 @@
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_resource_quota package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: hammer_cli_foreman_resource_quota 0.0.1\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2023-07-12 14:40+0000\n"
12
+ "PO-Revision-Date: 2025-01-07 14:47+0000\n"
13
+ "Language-Team: English (United Kingdom) (https://app.transifex.com/foreman/"
14
+ "teams/114/en_GB/)\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Language: en_GB\n"
19
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
+
21
+ msgid "Resource quota id"
22
+ msgstr ""
23
+
24
+ msgid "Id"
25
+ msgstr ""
26
+
27
+ msgid "Name"
28
+ msgstr ""
29
+
30
+ msgid "Created at"
31
+ msgstr ""
32
+
33
+ msgid "CPU cores"
34
+ msgstr ""
35
+
36
+ msgid "Memory [MiB]"
37
+ msgstr ""
38
+
39
+ msgid "Disk space [GiB]"
40
+ msgstr ""
41
+
42
+ msgid "Assigned hosts"
43
+ msgstr ""
44
+
45
+ msgid "Number of users"
46
+ msgstr ""
47
+
48
+ msgid "Number of usergroups"
49
+ msgstr ""
50
+
51
+ msgid "Number of missing hosts"
52
+ msgstr ""
53
+
54
+ msgid "Utilization"
55
+ msgstr ""
56
+
57
+ msgid "Resource quota created."
58
+ msgstr ""
59
+
60
+ msgid "Could not create resource quota"
61
+ msgstr ""
62
+
63
+ msgid "Maximum memory in MiB"
64
+ msgstr ""
65
+
66
+ msgid "Maximum disk space in GiB"
67
+ msgstr ""
68
+
69
+ msgid "Resource quota [%{name}] was deleted."
70
+ msgstr ""
71
+
72
+ msgid "Could not delete the resource quota"
73
+ msgstr ""
74
+
75
+ msgid "Resource quota [%{name}] updated."
76
+ msgstr ""
77
+
78
+ msgid "Could not update the resource quota"
79
+ msgstr ""
80
+
81
+ msgid "Host name"
82
+ msgstr ""
83
+
84
+ msgid "Usergroup name"
85
+ msgstr ""
86
+
87
+ msgid "User name"
88
+ msgstr ""
89
+
90
+ msgid "Missing hosts"
91
+ msgstr ""
92
+
93
+ msgid "Resource quota settings"
94
+ msgstr ""
95
+
96
+ msgid "Resource quota is optional"
97
+ msgstr ""
98
+
99
+ msgid "Resource quota ids"
100
+ msgstr ""
101
+
102
+ msgid "Resource quota optional"
103
+ msgstr ""
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_resource_quota 0.5.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_resource_quota 0.0.1\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2023-07-12 14:40+0000\n"
12
- "PO-Revision-Date: 2023-07-12 14:40+0000\n"
11
+ "POT-Creation-Date: 2025-01-08 13:12+0000\n"
12
+ "PO-Revision-Date: 2025-01-08 13:12+0000\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -18,3 +18,122 @@ msgstr ""
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
20
20
 
21
+ #: ../lib/hammer_cli_foreman_resource_quota/host.rb:8
22
+ msgid "Resource quota id"
23
+ msgstr ""
24
+
25
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:7
26
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:20
27
+ msgid "Id"
28
+ msgstr ""
29
+
30
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:21
31
+ msgid "Name"
32
+ msgstr ""
33
+
34
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:22
35
+ msgid "Created at"
36
+ msgstr ""
37
+
38
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:23
39
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:38
40
+ msgid "CPU cores"
41
+ msgstr ""
42
+
43
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:24
44
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:39
45
+ msgid "Memory [MiB]"
46
+ msgstr ""
47
+
48
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:25
49
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:40
50
+ msgid "Disk space [GiB]"
51
+ msgstr ""
52
+
53
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:26
54
+ msgid "Assigned hosts"
55
+ msgstr ""
56
+
57
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:33
58
+ msgid "Number of users"
59
+ msgstr ""
60
+
61
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:34
62
+ msgid "Number of usergroups"
63
+ msgstr ""
64
+
65
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:35
66
+ msgid "Number of missing hosts"
67
+ msgstr ""
68
+
69
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:36
70
+ msgid "Utilization"
71
+ msgstr ""
72
+
73
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:48
74
+ msgid "Resource quota created."
75
+ msgstr ""
76
+
77
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:49
78
+ msgid "Could not create resource quota"
79
+ msgstr ""
80
+
81
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:51
82
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:70
83
+ msgid "Maximum memory in MiB"
84
+ msgstr ""
85
+
86
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:52
87
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:71
88
+ msgid "Maximum disk space in GiB"
89
+ msgstr ""
90
+
91
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:60
92
+ msgid "Resource quota [%{name}] was deleted."
93
+ msgstr ""
94
+
95
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:61
96
+ msgid "Could not delete the resource quota"
97
+ msgstr ""
98
+
99
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:67
100
+ msgid "Resource quota [%{name}] updated."
101
+ msgstr ""
102
+
103
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:68
104
+ msgid "Could not update the resource quota"
105
+ msgstr ""
106
+
107
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:83
108
+ msgid "Host name"
109
+ msgstr ""
110
+
111
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:94
112
+ msgid "Usergroup name"
113
+ msgstr ""
114
+
115
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:105
116
+ msgid "User name"
117
+ msgstr ""
118
+
119
+ #: ../lib/hammer_cli_foreman_resource_quota/resource_quota.rb:116
120
+ msgid "Missing hosts"
121
+ msgstr ""
122
+
123
+ #: ../lib/hammer_cli_foreman_resource_quota/user.rb:8
124
+ msgid "Resource quota settings"
125
+ msgstr ""
126
+
127
+ #: ../lib/hammer_cli_foreman_resource_quota/user.rb:9
128
+ msgid "Resource quota is optional"
129
+ msgstr ""
130
+
131
+ #: ../lib/hammer_cli_foreman_resource_quota/user.rb:10
132
+ #: ../lib/hammer_cli_foreman_resource_quota/user.rb:18
133
+ #: ../lib/hammer_cli_foreman_resource_quota/usergroup.rb:8
134
+ msgid "Resource quota ids"
135
+ msgstr ""
136
+
137
+ #: ../lib/hammer_cli_foreman_resource_quota/user.rb:17
138
+ msgid "Resource quota optional"
139
+ msgstr ""
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_resource_quota
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ATIX AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-07 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hammer_cli_foreman
@@ -59,6 +59,12 @@ files:
59
59
  - lib/hammer_cli_foreman_resource_quota/user.rb
60
60
  - lib/hammer_cli_foreman_resource_quota/usergroup.rb
61
61
  - lib/hammer_cli_foreman_resource_quota/version.rb
62
+ - locale/de/LC_MESSAGES/hammer_cli_foreman_resource_quota.mo
63
+ - locale/de/hammer_cli_foreman_resource_quota.po
64
+ - locale/en/LC_MESSAGES/hammer_cli_foreman_resource_quota.mo
65
+ - locale/en/hammer_cli_foreman_resource_quota.po
66
+ - locale/en_GB/LC_MESSAGES/hammer_cli_foreman_resource_quota.mo
67
+ - locale/en_GB/hammer_cli_foreman_resource_quota.po
62
68
  - locale/hammer_cli_foreman_resource_quota.pot
63
69
  homepage: https://www.orcharhino.com/
64
70
  licenses: