foreman_rescue 2.0.1 → 3.0.0

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: 4c9291994048aefb65f00e2f4c94461a823941d3f415e6d52d43ada93e5766a5
4
- data.tar.gz: 12ddd227e7065bfc45fb668e6296490763a52b9e8e290fc13e9b5f0b1fb191cd
3
+ metadata.gz: 55de93b62e157091d65fcab30cb1874ec5ac90a2f26ee581330942907c2a8b2f
4
+ data.tar.gz: 13649843d4c4a7fe195c109851e839c627f205c8a12294a1837299f5daed79da
5
5
  SHA512:
6
- metadata.gz: f2bb66ec002dea21df1499897ed5b54a889c68ea89a45464e9c089064e71fe8a457353a63177a8af5a2cee185bb5c81bf16b774bf11218c72bf1d6536a284a79
7
- data.tar.gz: ea6ad609f4201f95f2b472c7636ce4a054a8f7c807de3b04d1d5392425810d5f42d62b9c33f6c8c32894072a012853a13cf4a5ac6a716a55f483b959a92af65f
6
+ metadata.gz: 535f2a6efd573bb1127a731eee765cfc233b9e37b41bbc8a63a9cb8cb99aaaef92e0ddc547b006aae92a9fd1a9892dad9924dfb459759033d27cb1d832f26bb4
7
+ data.tar.gz: 8de3049f0f3634be135618fb79f109f1bf047c8e752f5519757d4ba682aa5280a91257d000afef65cee9cb702574d303ae0914fefb99f6e59f3fe959c833044a
data/README.md CHANGED
@@ -11,6 +11,7 @@ This plugin allows a user to boot a Foreman host into a rescue system via PXE.
11
11
  | >= 1.15 | ~> 0.1 |
12
12
  | >= 1.17 | ~> 1.0 |
13
13
  | >= 1.20 | ~> 2.0 |
14
+ | >= 1.21 | ~> 3.0 |
14
15
 
15
16
  ## Installation
16
17
 
@@ -15,7 +15,7 @@ class Setting
15
15
  set('rescue_pxegrub2_tftp_template',
16
16
  N_('PXEGrub2 template used when booting rescue system'),
17
17
  '', N_('PXEGrub2 rescue template'), nil,
18
- :collection => proc { Setting::Rescue.templates('PXEGrub 2') })
18
+ :collection => proc { Setting::Rescue.templates('PXEGrub2') })
19
19
  ]
20
20
  end
21
21
 
@@ -49,7 +49,7 @@ oses:
49
49
  end
50
50
 
51
51
  # kickstart repository for LiveOS
52
- options.push("method=#{@host.operatingsystem.medium_uri(@host)}")
52
+ options.push("method=#{medium_uri}")
53
53
 
54
54
  if host_param('blacklist')
55
55
  options.push("modprobe.blacklist=" + host_param('blacklist').gsub(' ', ''))
@@ -1,4 +1,29 @@
1
- <% title @host.to_label, icon(@host.operatingsystem) + @host.to_label %>
1
+ <%= breadcrumbs(
2
+ items:
3
+ [
4
+ {
5
+ caption: _('All Hosts'),
6
+ url: hosts_path
7
+ },
8
+ {
9
+ caption: {
10
+ text: @host.to_label,
11
+ icon: {
12
+ alt: label(@host.operatingsystem),
13
+ url: icon(@host.operatingsystem, path: true)
14
+ }
15
+ },
16
+ url: host_path(@host)
17
+ },
18
+ {
19
+ caption: _('Rescue Mode'),
20
+ }
21
+ ],
22
+ resource_url: api_hosts_path(thin: true),
23
+ switcher_item_url: rescue_host_path(':name'),
24
+ switchable: true
25
+ ) %>
26
+
2
27
  <div class="blank-slate-pf">
3
28
  <div class="blank-slate-pf-icon">
4
29
  <%= icon_text('medkit', '', :kind => 'fa', :class => @host.rescue_mode? ? 'text-success' : '') %>
@@ -25,7 +25,7 @@ module ForemanRescue
25
25
 
26
26
  initializer 'foreman_rescue.register_plugin', :before => :finisher_hook do |_app|
27
27
  Foreman::Plugin.register :foreman_rescue do
28
- requires_foreman '>= 1.20'
28
+ requires_foreman '>= 1.21'
29
29
 
30
30
  # Add permissions
31
31
  security_block :foreman_rescue do
@@ -1,3 +1,3 @@
1
1
  module ForemanRescue
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '3.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_rescue
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Goebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-29 00:00:00.000000000 Z
11
+ date: 2020-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc