foreman_bootdisk 3.2.1 → 4.0.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
  SHA1:
3
- metadata.gz: 4b3efafd37a6fee3fe5b56ba77f9fbd461f47b9b
4
- data.tar.gz: 3ac10b37510e7434f7e8bb77084a2f239131ea6a
3
+ metadata.gz: 67fc0c4eef2ddf1d89a2bcf54e51d512b288c236
4
+ data.tar.gz: 20961f842f4935e25aa1199ec689cd71cd3d8cac
5
5
  SHA512:
6
- metadata.gz: 8a9900b140bba222318075c4f631096c2a7de2fe36bef35b2bfd522c386cf34cf1854d73ecc457575311a97ce71e9d2cdb2ee98956e1cabee449dbb380303e97
7
- data.tar.gz: dcfc4b12b563f4f6acf5740bd068994f9e3190f0f41a60a7baf885f60d3253796045189fab3d75b79b4d15cc15aabf422e382454b886e4c2ac05cf0702b23419
6
+ metadata.gz: 8cf0e620cf0be77b0f9f7d0e31d52b6b2b8b54e01d6beaf3939b347f4ccdd95f65303ef6887de2507e365f4edc44713679b3b7b2d66da1ee1652e76e5f928899
7
+ data.tar.gz: 768f6c53c58a23765dd4efe51098034e493458da848aff66b362a30a9010e6434c7467afd0b45294bfc0f898fadd1f9e585efdc18e9492809cb2e9f20c786baf
data/CHANGES.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Changelog
2
2
 
3
- ## v3.2.1
4
- * fix empty? error when generating full host image on Ruby 1.8/1.9 (#7812,
5
- Ronald van Zantvoort)
3
+ ## v4.0.0
4
+ * fix controller compatibility with Foreman 1.7
6
5
 
7
6
  ## v3.2.0
8
7
  * add full host image containing OS bootloader for hosts that fail to
data/README.md CHANGED
@@ -38,6 +38,7 @@ gPXE images are unsupported due to lack of initrd support.
38
38
  | <= 1.3 | ~> 1.0 |
39
39
  | >= 1.4 | ~> 2.0 |
40
40
  | >= 1.6 | ~> 3.0 |
41
+ | >= 1.7 | ~> 4.0 |
41
42
 
42
43
  # Usage
43
44
 
@@ -2,7 +2,7 @@ require 'uri'
2
2
 
3
3
  module ForemanBootdisk
4
4
  class DisksController < ::ApplicationController
5
- before_filter :find_by_name, :only => %w[host full_host]
5
+ before_filter :find_resource, :only => %w[host full_host]
6
6
 
7
7
  def generic
8
8
  begin
@@ -45,7 +45,7 @@ module ForemanBootdisk
45
45
 
46
46
  private
47
47
 
48
- def resource_base
48
+ def resource_scope(controller = controller_name)
49
49
  Host::Managed.authorized(:view_hosts)
50
50
  end
51
51
  end
@@ -105,7 +105,7 @@ class ForemanBootdisk::ISOGenerator
105
105
  write_cache = use_cache
106
106
  uri = URI(uri)
107
107
  Net::HTTP.start(uri.host, uri.port) do |http|
108
- request = Net::HTTP::Get.new uri.request_uri
108
+ request = Net::HTTP::Get.new uri
109
109
 
110
110
  http.request request do |response|
111
111
  response.read_body do |chunk|
@@ -29,7 +29,7 @@ module ForemanBootdisk
29
29
 
30
30
  initializer 'foreman_bootdisk.register_plugin', :after=> :finisher_hook do |app|
31
31
  Foreman::Plugin.register :foreman_bootdisk do
32
- requires_foreman '>= 1.6'
32
+ requires_foreman '>= 1.7'
33
33
 
34
34
  security_block :bootdisk do |map|
35
35
  permission :download_bootdisk, {:'foreman_bootdisk/disks' => [:generic, :host, :full_host, :help],
@@ -1,3 +1,3 @@
1
1
  module ForemanBootdisk
2
- VERSION = '3.2.1'
2
+ VERSION = '4.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_bootdisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-20 00:00:00.000000000 Z
11
+ date: 2014-10-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Plugin for Foreman that creates iPXE-based boot disks to provision hosts
14
14
  without the need for PXE infrastructure.
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.0.6
102
+ rubygems_version: 2.1.11
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Create boot disks to provision hosts with Foreman