foreman_xen 0.5.4 → 0.6.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: e02d4cfbcbd62b08cc701d4c1ba09751d12c8248af3823dca830ee45fd339472
4
- data.tar.gz: 04fa491bcdc00623ade20d3edf47c22402562da7c4c386090b1e5fedde97852c
3
+ metadata.gz: 38d3e12967ca3a203cf8eddc4fe6e21140a8c3e144106445caa4ad58537aba44
4
+ data.tar.gz: 476f8f8724212ff5957dc0ef97db17e2dc429dc9ecbba13744294b61c2e859a4
5
5
  SHA512:
6
- metadata.gz: 6ff81e1546475bdfc01a1c60f0c4fc0ab81acc2080edf68d6669e1f4061d2b545d7f95b914a09d9bd248f3cbde77c419a4090362235c9234f6378521b5a28dcf
7
- data.tar.gz: a574c749fc57dcc8aa80ba3219a9e483cd40af56d6e8e832edac554dc816daa69074a8e5e515412eeeeaef81609ff1dc95e2edb1faf773a4975107ee9d1ee15e
6
+ metadata.gz: 5ce56cbd64536a09f48107d62736fede701aded7459f4c75efacda2013a6990539b02d8df3e4d4073e47e00662da20e5e366cfad5098e8bf56704d482cfe126f
7
+ data.tar.gz: c2dcc3d30d8367684f0300d0038ea4da13d6a681097b7711b128149d17ffc50cbdb095dd8d2bb8a17725e8a9efcc8ed113ef25e109c4b50d79cd4df7d906efd7
data/README.md CHANGED
@@ -23,7 +23,7 @@ Please see the Foreman manual for further instructions:
23
23
  | >=1.11, <1.13 | 0.3.x (unmaintained) |
24
24
  | >=1.13, <1.14 | 0.4.x (unmaintained) |
25
25
  | >=1.14, <1.17 | 0.5.x |
26
- | >=1.17 | 0.6.x (unreleased) |
26
+ | >=1.17 | 0.6.x |
27
27
 
28
28
  ## Support
29
29
 
@@ -2,27 +2,29 @@ module ForemanXen
2
2
  module HostHelperExtensions
3
3
  extend ActiveSupport::Concern
4
4
 
5
- included do
6
- alias_method_chain :host_title_actions, :xen_snap_button
7
- end
8
-
9
- def host_title_actions_with_xen_snap_button(*args)
10
- unless @host.compute_resource.nil?
11
- if @host.compute_resource.type == 'ForemanXen::Xenserver'
12
- title_actions(
13
- button_group(
14
- link_to(
15
- _('Xen Snapshots'),
16
- "../foreman_xen/snapshots/#{@host.id}/",
17
- :title => _('Manage machine snapshots'),
18
- :id => :xen_snap_button,
19
- :class => 'btn btn-default'
5
+ module Overrides
6
+ def host_title_actions(host)
7
+ unless @host.compute_resource.nil?
8
+ if @host.compute_resource.type == 'ForemanXen::Xenserver'
9
+ title_actions(
10
+ button_group(
11
+ link_to(
12
+ _('Xen Snapshots'),
13
+ "../foreman_xen/snapshots/#{@host.id}/",
14
+ :title => _('Manage machine snapshots'),
15
+ :id => :xen_snap_button,
16
+ :class => 'btn btn-default'
17
+ )
20
18
  )
21
19
  )
22
- )
20
+ end
23
21
  end
22
+ super(host)
24
23
  end
25
- host_title_actions_without_xen_snap_button(*args)
24
+ end
25
+
26
+ included do
27
+ prepend Overrides
26
28
  end
27
29
  end
28
30
  end
@@ -168,7 +168,7 @@ module ForemanXen
168
168
  end
169
169
  retval = []
170
170
  tmps.each do |snapshot|
171
- retval << snapshot if snapshot.snapshot_metadata.include?(vm.uuid)
171
+ retval << snapshot if vm.snapshots.include?(snapshot.reference)
172
172
  end
173
173
  retval
174
174
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanXen
2
- VERSION = '0.5.4'.freeze
2
+ VERSION = '0.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_xen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Nemirovsky
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-05-05 00:00:00.000000000 Z
13
+ date: 2018-05-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fog-xenserver
@@ -83,7 +83,7 @@ files:
83
83
  - test/test_helper.rb
84
84
  homepage: http://github.com/theforeman/foreman-xen
85
85
  licenses:
86
- - GPL-3.0
86
+ - GPL-3
87
87
  metadata: {}
88
88
  post_install_message:
89
89
  rdoc_options: []