puppetdb_foreman 3.0.1 → 3.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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cf07188d51d4875521cd15220602cbaa93903ad
|
|
4
|
+
data.tar.gz: 15d00054f21b1ac02284c7109e9e2ef6c2c0780f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9539d3829eeb6d99323fa33ae615f40fb383bf5504dfd87bebab75f899f10716f1c77188229a887c52dcdbd3b6db885094e35cff66aff62e3115a0ef6648e77
|
|
7
|
+
data.tar.gz: 6a2640883be7e6efd8ad4d7cf9f0be5f3d489520a303b86f09151dded80f1fda6384629e661be71356be5f7907b582e430cbb60ce503be3753a0650ec2c5671e
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
module PuppetdbForeman
|
|
2
2
|
class NodesController < ApplicationController
|
|
3
|
-
include ::Foreman::Controller::ActionPermissionDsl
|
|
4
|
-
|
|
5
3
|
before_action :find_node, :only => [:destroy, :import]
|
|
6
|
-
define_action_permission ['import'], :import
|
|
7
4
|
|
|
8
5
|
def controller_permission
|
|
9
6
|
'puppetdb_nodes'
|
|
@@ -32,6 +29,15 @@ module PuppetdbForeman
|
|
|
32
29
|
|
|
33
30
|
private
|
|
34
31
|
|
|
32
|
+
def action_permission
|
|
33
|
+
case params[:action]
|
|
34
|
+
when 'import'
|
|
35
|
+
'import'
|
|
36
|
+
else
|
|
37
|
+
super
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
35
41
|
def find_node
|
|
36
42
|
@node = params[:id]
|
|
37
43
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puppetdb_foreman
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Lobato Garcia
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|