foreman_hosts 2.0.4.2 → 2.0.4.3

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.
@@ -11,7 +11,7 @@ module ForemanHosts
11
11
 
12
12
  # Add any db migrations
13
13
  initializer 'foreman_hosts.load_app_instance_data' do |app|
14
- app.config.paths['db/migrate'] += ForemanHosts::Engine.paths['db/migrate'].existent
14
+ #app.config.paths['db/migrate'] += ForemanHosts::Engine.paths['db/migrate'].existent
15
15
  end
16
16
 
17
17
  initializer 'foreman_hosts.register_plugin', after: :finisher_hook do |_app|
@@ -21,19 +21,15 @@ module ForemanHosts
21
21
  # Add permissions
22
22
  security_block :foreman_hosts do
23
23
  permission :view_foreman_hosts, :'foreman_hosts/hosts' => [:report_index]
24
- # permission :view_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:index, :show]
25
- # permission :new_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:new, :create]
26
- # permission :edit_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:edit, :update]
27
- # permission :delete_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:destroy]
28
24
  end
29
25
 
30
26
  # Add a new role called 'Discovery' if it doesn't exist
31
- role 'ForemanHosts', [:view_foreman_hosts ] #, :view_foreman_syhostmodels, :new_foreman_syhostmodels, :edit_foreman_syhostmodels, :delete_foreman_syhostmodels]
27
+ role 'ForemanHosts', [:view_foreman_hosts]
28
+
32
29
  # add menu entry
33
30
 
34
31
  sub_menu :top_menu, :export_menu, :caption=> N_('Export'), :after=> :infrastructure_menu do
35
- #menu :top_menu, :level1, :caption=>N_('ExportTemplates'), :url_hash => { :controller => 'foreman_hosts/syhostmodels', :action => :index }
36
- menu :top_menu, :level2, :caption=>N_('ExportHosts'), :url_hash => { :controller => 'foreman_hosts/hosts', :action => :report_index }
32
+ menu :top_menu, :level1, :caption=>N_('ExportHosts'), :url_hash => { :controller => 'foreman_hosts/hosts', :action => :report_index }
37
33
  # menu :top_menu, :level2, :url_hash => {:controller=> :example, :action=>:index}
38
34
  # menu :top_menu, :level3, :url_hash => {:controller=> :example, :action=>:index}
39
35
  # sub_menu :top_menu, :inner_level, :caption=> N_('Inner level') do
@@ -1,3 +1,3 @@
1
1
  module ForemanHosts
2
- VERSION = '2.0.4.2'
2
+ VERSION = '2.0.4.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_hosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4.2
4
+ version: 2.0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: