hammer_cli_foreman 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes.md +6 -0
- data/lib/hammer_cli_foreman/id_resolver.rb +2 -1
- data/lib/hammer_cli_foreman/table_preference.rb +48 -0
- data/lib/hammer_cli_foreman/user.rb +3 -0
- data/lib/hammer_cli_foreman/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/test/data/3.4/foreman_api.json +1 -0
- data/test/functional/table_preference_test.rb +100 -0
- data/test/test_helper.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4787fbc9dbda1fcd2311672da8001300715cfc1448b82f985509a73cab3ab416
|
4
|
+
data.tar.gz: a2ee1f1044f4422181109b166040b8e83dd9c727310c7753e89d26c23dae3c7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1fe6bb98a5c352f95ce509e7e56f7c398180aa3790d1105f2c7ffb98d8dcfca4e4ab1cda4331a1f70000a834a75671782ed8e1d6b7ba65b3d83b474f8a9f3c6
|
7
|
+
data.tar.gz: 8e490092a17af3fd13d8c8c5d6ff6f42227e3e9bfa888818975308679a0724e6f6e8183d811a3a47dcbd369da0e0f92ccf4b2131b4e90d9b0d17bda9c01950fc
|
data/doc/release_notes.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
Release notes
|
2
2
|
=============
|
3
|
+
### 3.4.0 (2022-08-09)
|
4
|
+
* Add options for table preferences cli ([PR #603](https://github.com/theforeman/hammer-cli-foreman/pull/603)), [#35219](http://projects.theforeman.org/issues/35219)
|
5
|
+
* I18n - extracting new, pulling from tx, [#34629](http://projects.theforeman.org/issues/34629)
|
6
|
+
* Fix config for transifex, [#34629](http://projects.theforeman.org/issues/34629)
|
7
|
+
* Bump to 3.4.0-develop
|
8
|
+
|
3
9
|
### 3.3.0 (2022-05-10)
|
4
10
|
* Add kerberos negotiate auth support ([PR #555](https://github.com/theforeman/hammer-cli-foreman/pull/555)), [#8923](http://projects.theforeman.org/issues/8923)
|
5
11
|
* Pin mocha gem to < 1.14.0
|
@@ -66,7 +66,8 @@ module HammerCLIForeman
|
|
66
66
|
:user => [ s("login", _("User's login to search by")) ],
|
67
67
|
:common_parameter => [ s_name(_("Common parameter name")) ],
|
68
68
|
:template_combination => [],
|
69
|
-
:compute_attribute => []
|
69
|
+
:compute_attribute => [],
|
70
|
+
:table_preference => []
|
70
71
|
}
|
71
72
|
DEFAULT_SEARCHABLES = [ s_name(_("Name to search by")) ]
|
72
73
|
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module HammerCLIForeman
|
2
|
+
class TablePreference < HammerCLIForeman::Command
|
3
|
+
resource :table_preferences
|
4
|
+
command_name "table-preference"
|
5
|
+
|
6
|
+
class ListCommand < HammerCLIForeman::ListCommand
|
7
|
+
output do
|
8
|
+
field :id, _("Id")
|
9
|
+
field :name, _("Name")
|
10
|
+
field :columns, _("Columns"), Fields::List
|
11
|
+
end
|
12
|
+
|
13
|
+
build_options
|
14
|
+
end
|
15
|
+
|
16
|
+
class CreateCommand < HammerCLIForeman::CreateCommand
|
17
|
+
success_message _('Table preference created.')
|
18
|
+
failure_message _('Could not create table preference')
|
19
|
+
|
20
|
+
build_options
|
21
|
+
end
|
22
|
+
|
23
|
+
class UpdateCommand < HammerCLIForeman::UpdateCommand
|
24
|
+
success_message _('Table preference updated.')
|
25
|
+
failure_message _('Could not update table preference')
|
26
|
+
|
27
|
+
build_options
|
28
|
+
end
|
29
|
+
|
30
|
+
class InfoCommand < HammerCLIForeman::InfoCommand
|
31
|
+
output ListCommand.output_definition do
|
32
|
+
field :created_at, _("Created at"), Fields::Date
|
33
|
+
field :updated_at, _("Updated at"), Fields::Date
|
34
|
+
end
|
35
|
+
|
36
|
+
build_options
|
37
|
+
end
|
38
|
+
|
39
|
+
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
40
|
+
success_message _('Table preference deleted.')
|
41
|
+
failure_message _('Could not remove table preference')
|
42
|
+
|
43
|
+
build_options
|
44
|
+
end
|
45
|
+
|
46
|
+
autoload_subcommands
|
47
|
+
end
|
48
|
+
end
|
@@ -90,6 +90,9 @@ module HammerCLIForeman
|
|
90
90
|
lazy_subcommand('mail-notification', _("Managing personal mail notifications"),
|
91
91
|
'HammerCLIForeman::UserMailNotification', 'hammer_cli_foreman/user_mail_notification'
|
92
92
|
)
|
93
|
+
lazy_subcommand('table-preference', _("Managing table preferences"),
|
94
|
+
'HammerCLIForeman::TablePreference', 'hammer_cli_foreman/table_preference'
|
95
|
+
)
|
93
96
|
autoload_subcommands
|
94
97
|
end
|
95
98
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|