hammer_cli_foreman_rh_cloud 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 875874216aabf1d9af8aa939b77710c79b3b7718343d9f3a450f5ae0e163d09b
4
- data.tar.gz: c3d2d2fce597a07a28830b2ea6b80962b89c628e50bcf2302be6d3752a4a6dff
3
+ metadata.gz: fdb1e27efedd16ea02bf4610dc225a372c3d2317ae4e55d7471fe7e8ad84fb37
4
+ data.tar.gz: ec88e0443bdd83f3a532df87d040f3eb11c84f6ba550a0c67d3bfe0dc9aea6d7
5
5
  SHA512:
6
- metadata.gz: bc4d05f8bf49c4a7852fb361fd10712e5f69dcff06b2b0e11ce7d68af9750d6afaa12cbbdae8f43ff896a41679ff73b3b9432efc5f62e0558db95b70bc342c3a
7
- data.tar.gz: 0425d30c4aeb5bda29d004b9bc9f7457ac7e0a880141584b57e20b204514fa172f7b7e0199785b41e274e14e61d6194b8abe996de5c3fe73f2ef2981346e48eb
6
+ metadata.gz: c1e92bab1c8cb56b792b08746bf2fb8e9ea88b58acb048de69370e753ce9c3ec031dff39faef578469c3e592030fc764bc75f280ae01c03b1ac0f8e167fd1d71
7
+ data.tar.gz: ef1c91d0d2731fbbf755a4e049b24d8ff1fa60a8fd3fe61c2e78c4251e3f2db72c9dd3f9412722bf09206de99a9bbb933d7297288a5ae04c6734a336a8c12721
@@ -0,0 +1,28 @@
1
+ require 'hammer_cli/i18n'
2
+
3
+ module HammerCLIForemanRhCloud
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-rh-cloud'
16
+ end
17
+ end
18
+
19
+ class SystemLocaleDomain < LocaleDomain
20
+ def locale_dir
21
+ '/usr/share/locale'
22
+ end
23
+ end
24
+ end
25
+ end
26
+
27
+ domain = [HammerCLIForemanRhCloud::I18n::LocaleDomain.new, HammerCLIForemanRhCloud::I18n::SystemLocaleDomain.new].find { |d| d.available? }
28
+ HammerCLI::I18n.add_domain(domain) if domain
@@ -1,5 +1,5 @@
1
1
  module HammerCLIForemanRhCloud
2
2
  def self.version
3
- @version ||= Gem::Version.new '1.0.1'
3
+ @version ||= Gem::Version.new '1.0.2'
4
4
  end
5
5
  end
@@ -3,6 +3,7 @@ module HammerCLIForemanRhCloud
3
3
  require 'hammer_cli_foreman'
4
4
 
5
5
  require 'hammer_cli_foreman_rh_cloud/version'
6
+ require 'hammer_cli_foreman_rh_cloud/i18n'
6
7
  require 'hammer_cli_foreman_rh_cloud/report'
7
8
 
8
9
  HammerCLI::MainCommand.lazy_subcommand(
@@ -0,0 +1,48 @@
1
+ # English translations for hammer-cli-foreman-rh-cloud package.
2
+ # Copyright (C) 2023 THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the hammer-cli-foreman-rh-cloud package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: hammer-cli-foreman-rh-cloud 1.0.1\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "PO-Revision-Date: 2023-07-12 16:17+0000\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=; plural=;\n"
18
+ "\n"
19
+
20
+ msgid "Cloud connector enable task started"
21
+ msgstr ""
22
+
23
+ msgid ""
24
+ "Failed to enable cloud connector, please check server logs for more informatio"
25
+ "n"
26
+ msgstr ""
27
+
28
+ msgid "Task id"
29
+ msgstr ""
30
+
31
+ msgid "Inventory sync task started successfully"
32
+ msgstr ""
33
+
34
+ msgid ""
35
+ "Failed to start inventory sync task, please check server logs for more informa"
36
+ "tion"
37
+ msgstr ""
38
+
39
+ msgid "Failed to download report"
40
+ msgstr ""
41
+
42
+ msgid "Report generation started successfully"
43
+ msgstr ""
44
+
45
+ msgid ""
46
+ "Failed to start report generation task, please check server logs for more info"
47
+ "rmation."
48
+ msgstr ""
@@ -0,0 +1,58 @@
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-rh-cloud package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: hammer-cli-foreman-rh-cloud 1.0.1\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2023-07-12 16:17+0000\n"
12
+ "PO-Revision-Date: 2023-07-12 16:17+0000\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_rh_cloud/cloud_connector.rb:11
22
+ msgid "Cloud connector enable task started"
23
+ msgstr ""
24
+
25
+ #: ../lib/hammer_cli_foreman_rh_cloud/cloud_connector.rb:12
26
+ msgid ""
27
+ "Failed to enable cloud connector, please check server logs for more informatio"
28
+ "n"
29
+ msgstr ""
30
+
31
+ #: ../lib/hammer_cli_foreman_rh_cloud/cloud_connector.rb:15
32
+ #: ../lib/hammer_cli_foreman_rh_cloud/inventory.rb:15
33
+ msgid "Task id"
34
+ msgstr ""
35
+
36
+ #: ../lib/hammer_cli_foreman_rh_cloud/inventory.rb:11
37
+ msgid "Inventory sync task started successfully"
38
+ msgstr ""
39
+
40
+ #: ../lib/hammer_cli_foreman_rh_cloud/inventory.rb:12
41
+ msgid ""
42
+ "Failed to start inventory sync task, please check server logs for more informa"
43
+ "tion"
44
+ msgstr ""
45
+
46
+ #: ../lib/hammer_cli_foreman_rh_cloud/report.rb:12
47
+ msgid "Failed to download report"
48
+ msgstr ""
49
+
50
+ #: ../lib/hammer_cli_foreman_rh_cloud/report.rb:22
51
+ msgid "Report generation started successfully"
52
+ msgstr ""
53
+
54
+ #: ../lib/hammer_cli_foreman_rh_cloud/report.rb:23
55
+ msgid ""
56
+ "Failed to start report generation task, please check server logs for more info"
57
+ "rmation."
58
+ msgstr ""
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_rh_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shimon Shtein
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-28 00:00:00.000000000 Z
11
+ date: 2023-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hammer_cli_foreman
@@ -42,9 +42,12 @@ files:
42
42
  - config/foreman_rh_cloud.yml
43
43
  - lib/hammer_cli_foreman_rh_cloud.rb
44
44
  - lib/hammer_cli_foreman_rh_cloud/cloud_connector.rb
45
+ - lib/hammer_cli_foreman_rh_cloud/i18n.rb
45
46
  - lib/hammer_cli_foreman_rh_cloud/inventory.rb
46
47
  - lib/hammer_cli_foreman_rh_cloud/report.rb
47
48
  - lib/hammer_cli_foreman_rh_cloud/version.rb
49
+ - locale/en/hammer-cli-foreman-rh-cloud.po
50
+ - locale/hammer-cli-foreman-rh-cloud.pot
48
51
  homepage: https://github.com/theforeman/hammer-cli-foreman-rh-cloud
49
52
  licenses:
50
53
  - GPL-3.0
@@ -64,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
67
  - !ruby/object:Gem::Version
65
68
  version: '0'
66
69
  requirements: []
67
- rubygems_version: 3.2.22
70
+ rubygems_version: 3.4.10
68
71
  signing_key:
69
72
  specification_version: 4
70
73
  summary: Foreman Rh Cloud plugin for Hammer CLI