foreman_setup 1.0.2 → 1.0.3

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: 2a5f7a4285f45e15c590f859a99183953f3e229e
4
- data.tar.gz: 6621079a8439c9f3af1f68dda5f3e65273871b64
3
+ metadata.gz: 108b7d028caf95892e9856dd30375168c0c9ae16
4
+ data.tar.gz: ba67990cf75080f773c8dbef65e9032979d02577
5
5
  SHA512:
6
- metadata.gz: 9fd902309dcd16c771cea88383df4e5a4df956ddec822504f77437013eb7e6c0968afc95bdbc79f21d8f681421ad3e01f9aa6b5809f62a3d3aa72470e0c185a3
7
- data.tar.gz: a5729e7ebd5bd9cb672b55f4a7bed3541a837055a6c786a4b3dd3e1ede0750c4944548b97fc781258c77a41c8779c2b151f79d3528ab13cd3e2c5d12bf8db205
6
+ metadata.gz: fedee3f1c689216802fead638c898245f7e402bc9e8d9b650f8f162400db04e287038aa8d8abd2410fb6629e0109ab85c61b9fb0806fcf74c0ce001983367e27
7
+ data.tar.gz: e2ff682c30a5fbb28aeb1669475df93e50eab3c048c9675b901c1d722ab7bbe12bbb411251d41613a914f0b5cb8cb21d32cc753dc36357a1c645db7af89d2c92
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.3
4
+ * fix Foreman 1.4 compatibility
5
+ * add basic role and permission under Foreman 1.4
6
+
3
7
  ## v1.0.2
4
8
  * fix Ruby 1.8 compatibility (Yamakasi)
5
9
 
@@ -13,6 +13,20 @@ module ForemanSetup
13
13
  app.config.paths['db/migrate'] += ForemanSetup::Engine.paths['db/migrate'].existent
14
14
  end
15
15
 
16
+ initializer 'foreman_setup.register_plugin', :after=> :finisher_hook do |app|
17
+ Foreman::Plugin.register :foreman_setup do
18
+ menu :top_menu, :provisioners, :url_hash => {:controller=> :'foreman_setup/provisioners', :action=>:index},
19
+ :caption=> N_('Provisioning setup'),
20
+ :parent => :infrastructure_menu,
21
+ :first => true
22
+
23
+ security_block :provisioning do
24
+ permission :edit_provisioning, {:'foreman_setup/provisioners' => [:index, :new, :update, :create, :show, :destroy, :step1, :step2, :step2_update, :step3, :step4, :step4_update, :step5] }
25
+ end
26
+ role "Provisioning setup", [:edit_provisioning]
27
+ end if defined? Foreman::Plugin
28
+ end
29
+
16
30
  config.to_prepare do
17
31
  begin
18
32
  ::HomeHelper.send :include, ForemanSetup::HomeHelperExt
@@ -1,3 +1,3 @@
1
1
  module ForemanSetup
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-21 00:00:00.000000000 Z
11
+ date: 2014-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.0.8
85
+ rubygems_version: 2.1.11
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Helps set up Foreman for provisioning