hammer_cli_foreman_bootdisk 0.4.1 → 0.4.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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hammer_cli_foreman_bootdisk/bootdisk.rb +2 -0
  3. data/lib/hammer_cli_foreman_bootdisk/commands.rb +7 -3
  4. data/lib/hammer_cli_foreman_bootdisk/i18n.rb +2 -0
  5. data/lib/hammer_cli_foreman_bootdisk/version.rb +3 -1
  6. data/lib/hammer_cli_foreman_bootdisk.rb +4 -2
  7. data/locale/ca/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  8. data/locale/ca/hammer_cli_foreman_bootdisk.po +1 -1
  9. data/locale/de/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  10. data/locale/de/hammer_cli_foreman_bootdisk.po +1 -1
  11. data/locale/en/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  12. data/locale/en/hammer_cli_foreman_bootdisk.po +1 -1
  13. data/locale/en_GB/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  14. data/locale/en_GB/hammer_cli_foreman_bootdisk.po +1 -1
  15. data/locale/es/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  16. data/locale/es/hammer_cli_foreman_bootdisk.po +4 -4
  17. data/locale/fr/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  18. data/locale/fr/hammer_cli_foreman_bootdisk.po +1 -1
  19. data/locale/it/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  20. data/locale/it/hammer_cli_foreman_bootdisk.po +1 -1
  21. data/locale/ja/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  22. data/locale/ja/hammer_cli_foreman_bootdisk.po +2 -1
  23. data/locale/ka/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  24. data/locale/ka/hammer_cli_foreman_bootdisk.po +1 -1
  25. data/locale/ko/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  26. data/locale/ko/hammer_cli_foreman_bootdisk.po +3 -3
  27. data/locale/nl_NL/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  28. data/locale/nl_NL/hammer_cli_foreman_bootdisk.po +1 -1
  29. data/locale/pt_BR/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  30. data/locale/pt_BR/hammer_cli_foreman_bootdisk.po +1 -1
  31. data/locale/ru/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  32. data/locale/ru/hammer_cli_foreman_bootdisk.po +1 -1
  33. data/locale/zh_CN/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  34. data/locale/zh_CN/hammer_cli_foreman_bootdisk.po +1 -1
  35. data/locale/zh_TW/LC_MESSAGES/hammer_cli_foreman_bootdisk.mo +0 -0
  36. data/locale/zh_TW/hammer_cli_foreman_bootdisk.po +1 -1
  37. metadata +18 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eeae46c6448b539f6b3abd2816e8e2dbc9defe2386f4dc18adc6c7df3047b845
4
- data.tar.gz: bf7711c09fe7f4d9a76ddb025026fd9e9cdbca78c0c4288891290e743ccf2c48
3
+ metadata.gz: a34b23ec2891310027a30ae7a439dec41bbf4e0a7fb5ce612293737e88e93579
4
+ data.tar.gz: 9b686e74a50cdd811333f782d8423de7329b8f1b1188f28adf211a4f5668c970
5
5
  SHA512:
6
- metadata.gz: a8b5e9a7ee46a5676a15ac0549f5d0bdabf88ba6a7f137fad56a5999f086eaad46a0253c22b2cc959f6c6404ba95390d95edd8e8b4438411e8c1e04a01fab56a
7
- data.tar.gz: 033fb715befe76c59caad752c8b70fbd4b1de96bc030e67f22e452e0abecb0ae27422150bdbf6f26499c3419dde1fbfc53408ba3407fcf509b76a82887461c08
6
+ metadata.gz: 433d40cdb07f6cf630ded316b07ed8bad761832ab7afb688fc8eccfc507aa2705d67eb20c8d3c3d7e3bbd518453487908e50958d09ace72544e103d7c93f6894
7
+ data.tar.gz: c5f3aaead067229bb870b8c68fee456d655ca0b28112b5810166bf248d7ae2196da3a81628af9b27fc6b01088cf3c0a37a4d425abff19d095a5c51929a7bc4be
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HammerCLIForemanBootdisk
2
4
  class Bootdisk < HammerCLIForeman::Command
3
5
  resource :disks
@@ -1,12 +1,15 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'tempfile'
2
4
  require 'hammer_cli_foreman/commands'
3
5
 
4
6
  module HammerCLIForemanBootdisk
5
7
  class DownloadCommand < HammerCLIForeman::Command
6
- option "--file", "PATH", _("File or device to write image to")
7
- option "--force", :flag, _("Force writing to existing destination (device etc.)")
8
- option "--sudo", :flag, _("Use sudo to write to device")
8
+ option '--file', 'PATH', _('File or device to write image to')
9
+ option '--force', :flag, _('Force writing to existing destination (device etc.)')
10
+ option '--sudo', :flag, _('Use sudo to write to device')
9
11
 
12
+ # rubocop:disable Layout/LineLength
10
13
  def print_data(record)
11
14
  server_filename = ::Regexp.last_match(1) if record.headers[:content_disposition].match?(/filename=["']?([^\s,;"']+)/)
12
15
  file = options[HammerCLI.option_accessor_name('file')] || server_filename || 'bootdisk.iso'
@@ -26,6 +29,7 @@ module HammerCLIForemanBootdisk
26
29
  end
27
30
  print_message(success_message % file) if success_message
28
31
  end
32
+ # rubocop:enable Layout/LineLength
29
33
 
30
34
  def request_options
31
35
  { response: :raw }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'hammer_cli/i18n'
2
4
 
3
5
  module HammerCLIForemanBootdisk
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HammerCLIForemanBootdisk
2
4
  def self.version
3
- @version ||= Gem::Version.new '0.4.1'
5
+ @version ||= Gem::Version.new '0.4.2'
4
6
  end
5
7
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'hammer_cli_foreman'
2
4
 
3
5
  module HammerCLIForemanBootdisk
@@ -9,8 +11,8 @@ module HammerCLIForemanBootdisk
9
11
  require 'hammer_cli_foreman_bootdisk/commands'
10
12
  require 'hammer_cli_foreman_bootdisk/version'
11
13
 
12
- HammerCLI::MainCommand.lazy_subcommand('bootdisk', _("Download boot disks"),
13
- 'HammerCLIForemanBootdisk::Bootdisk', 'hammer_cli_foreman_bootdisk/bootdisk')
14
+ HammerCLI::MainCommand.lazy_subcommand('bootdisk', _('Download boot disks'),
15
+ 'HammerCLIForemanBootdisk::Bootdisk', 'hammer_cli_foreman_bootdisk/bootdisk')
14
16
  rescue StandardError => e
15
17
  handler = HammerCLIForeman::ExceptionHandler.new(context: {}, adapter: :base)
16
18
  handler.handle_exception(e)
@@ -6,7 +6,7 @@
6
6
  # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2015-2016
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
12
12
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -7,7 +7,7 @@
7
7
  # simon11 <transifex@stieger.co>, 2014
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
10
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
13
13
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -5,7 +5,7 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
8
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
11
11
  "PO-Revision-Date: 2019-06-20 10:23+0200\n"
@@ -6,7 +6,7 @@
6
6
  # Andi Chandler <andi@gowling.com>, 2015-2016
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
12
12
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -4,15 +4,15 @@
4
4
  #
5
5
  # Translators:
6
6
  # Dominic Cleal <dcleal@redhat.com>, 2014
7
- # Sergio Ocón-Cárdenas <sergio.ocon@redhat.com>, 2014
8
- # Sergio Ocón-Cárdenas <sergio.ocon@redhat.com>, 2014
7
+ # Sergio Ocón-Cárdenas, 2014
8
+ # Sergio Ocón-Cárdenas, 2014
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
11
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
12
12
  "Report-Msgid-Bugs-To: \n"
13
13
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
14
14
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
15
- "Last-Translator: Sergio Ocón-Cárdenas <sergio.ocon@redhat.com>, 2014\n"
15
+ "Last-Translator: Sergio Ocón-Cárdenas, 2014\n"
16
16
  "Language-Team: Spanish (http://app.transifex.com/foreman/foreman/language/"
17
17
  "es/)\n"
18
18
  "MIME-Version: 1.0\n"
@@ -7,7 +7,7 @@
7
7
  # Pierre-Emmanuel Dutang <dutangp@gmail.com>, 2014
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
10
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
13
13
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -6,7 +6,7 @@
6
6
  # Dominic Cleal <dcleal@redhat.com>, 2014
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
12
12
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -5,9 +5,10 @@
5
5
  # Translators:
6
6
  # Dominic Cleal <dcleal@redhat.com>, 2014
7
7
  # 山田 修司 🍣 Shuji Yamada <uzy.exe@gmail.com>, 2015
8
+ # 山田 修司 🍣 Shuji Yamada <uzy.exe@gmail.com>, 2015
8
9
  msgid ""
9
10
  msgstr ""
10
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
11
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
11
12
  "Report-Msgid-Bugs-To: \n"
12
13
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
13
14
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -5,7 +5,7 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
8
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
11
11
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -6,7 +6,7 @@
6
6
  # Dominic Cleal <dcleal@redhat.com>, 2014
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
12
12
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -35,10 +35,10 @@ msgid "Failed to download host disk image"
35
35
  msgstr "호스트 디스크 이미지 다운로드에 실패했습니다 "
36
36
 
37
37
  msgid "Successfully downloaded subnet disk image to %s"
38
- msgstr ""
38
+ msgstr "서브넷 디스크 이미지를 %s로 성공적으로 다운로드했습니다."
39
39
 
40
40
  msgid "Failed to download subnet disk image"
41
- msgstr ""
41
+ msgstr "서브넷 디스크 이미지 다운로드에 실패했습니다."
42
42
 
43
43
  msgid "File or device to write image to"
44
44
  msgstr "이미지를 작성할 파일 또는 장치 "
@@ -6,7 +6,7 @@
6
6
  # EmielK <emiel@kremers.us>, 2014
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
12
12
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -6,7 +6,7 @@
6
6
  # Dominic Cleal <dcleal@redhat.com>, 2014
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
12
12
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -8,7 +8,7 @@
8
8
  # Yulia <yulia.poyarkova@redhat.com>, 2016
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
11
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
12
12
  "Report-Msgid-Bugs-To: \n"
13
13
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
14
14
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -6,7 +6,7 @@
6
6
  # Dominic Cleal <dcleal@redhat.com>, 2014
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
12
12
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
@@ -6,7 +6,7 @@
6
6
  # Dominic Cleal <dcleal@redhat.com>, 2014
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_bootdisk 0.3.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_bootdisk 0.4.1\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-06-20 10:23+0200\n"
12
12
  "PO-Revision-Date: 2014-08-08 16:21+0000\n"
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_bootdisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-03-25 00:00:00.000000000 Z
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
@@ -24,6 +23,20 @@ dependencies:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
25
  version: '3.10'
26
+ - !ruby/object:Gem::Dependency
27
+ name: theforeman-rubocop
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: 0.1.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 0.1.0
27
40
  description: Foreman boot disk commands for Hammer CLI
28
41
  email: dcleal@redhat.com
29
42
  executables: []
@@ -75,9 +88,8 @@ files:
75
88
  - locale/zh_TW/hammer_cli_foreman_bootdisk.po
76
89
  homepage: https://github.com/theforeman/hammer_cli_foreman_bootdisk
77
90
  licenses:
78
- - GPL-3.0+
91
+ - GPL-3.0-or-later
79
92
  metadata: {}
80
- post_install_message:
81
93
  rdoc_options: []
82
94
  require_paths:
83
95
  - lib
@@ -95,8 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
107
  - !ruby/object:Gem::Version
96
108
  version: '0'
97
109
  requirements: []
98
- rubygems_version: 3.1.6
99
- signing_key:
110
+ rubygems_version: 3.6.9
100
111
  specification_version: 4
101
112
  summary: Foreman boot disk commands for Hammer
102
113
  test_files: []