foreman_hosts 1.1.3 → 1.1.4
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.
- data/README.md +0 -1
- data/app/controllers/foreman_hosts/hosts_controller.rb +11 -0
- data/app/helpers/concerns/foreman_hosts/hosts_helper_extensions.rb +13 -0
- data/app/models/concerns/foreman_hosts/host_extensions.rb +19 -0
- data/app/views/foreman_hosts/hosts/hosts/new_action.html.erb +1 -0
- data/app/views/foreman_hosts/hosts/new_action.html.erb +1 -0
- data/config/routes.rb +0 -2
- data/lib/foreman_hosts/engine.rb +0 -12
- data/lib/foreman_hosts/version.rb +2 -1
- metadata +9 -5
- data/bin/foreman-hosts +0 -5
- /data/app/models/{foreman_hosts/syhostmodel.rb → syhostmodel.rb} +0 -0
- /data/app/models/{foreman_hosts/syhostmodeldetail.rb → syhostmodeldetail.rb} +0 -0
data/README.md
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
module ForemanHosts
|
2
|
+
# Example: Plugin's HostsController inherits from Foreman's HostsController
|
3
|
+
class HostsController < ::HostsController
|
4
|
+
# change layout if needed
|
5
|
+
# layout 'foreman_hosts/layouts/new_layout'
|
6
|
+
|
7
|
+
def new_action
|
8
|
+
# automatically renders view/foreman_hosts/hosts/new_action
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module ForemanHosts
|
2
|
+
module HostExtensions
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
included do
|
6
|
+
# execute callbacks
|
7
|
+
end
|
8
|
+
|
9
|
+
# create or overwrite instance methods...
|
10
|
+
def instance_method_name
|
11
|
+
end
|
12
|
+
|
13
|
+
module ClassMethods
|
14
|
+
# create or overwrite class methods...
|
15
|
+
def class_method_name
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Welcome to <b>ForemanHosts</b>
|
@@ -0,0 +1 @@
|
|
1
|
+
Welcome to <b>ForemanHosts</b>
|
data/config/routes.rb
CHANGED
data/lib/foreman_hosts/engine.rb
CHANGED
@@ -20,8 +20,6 @@ module ForemanHosts
|
|
20
20
|
|
21
21
|
# Add permissions
|
22
22
|
security_block :foreman_hosts do
|
23
|
-
|
24
|
-
|
25
23
|
permission :view_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:index, :show, :auto_complete_search]
|
26
24
|
permission :new_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:new, :create]
|
27
25
|
permission :edit_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:edit, :update]
|
@@ -32,16 +30,9 @@ module ForemanHosts
|
|
32
30
|
role 'ForemanHosts', [:view_foreman_syhostmodels, :new_foreman_syhostmodels, :edit_foreman_syhostmodels, :delete_foreman_syhostmodels]
|
33
31
|
|
34
32
|
# add menu entry
|
35
|
-
|
36
33
|
sub_menu :top_menu, :export_menu, :caption=> N_('Export'), :after=> :infrastructure_menu do
|
37
34
|
menu :top_menu, :level1, :caption=>N_('ExportTemplates'), :url_hash => { :controller => 'foreman_hosts/syhostmodels', :action => :index }
|
38
|
-
#menu :top_menu, :level2, :caption=>N_('ExportHosts'), :url_hash => { :controller => 'foreman_hosts/hosts', :action => :report_index }
|
39
35
|
end
|
40
|
-
# menu :top_menu, :template,
|
41
|
-
# url_hash: { controller: :'foreman_hosts/hosts', action: :new_action },
|
42
|
-
# caption: 'ForemanHosts',
|
43
|
-
# parent: :hosts_menu,
|
44
|
-
# after: :hosts
|
45
36
|
|
46
37
|
# add dashboard widget
|
47
38
|
widget 'foreman_hosts_widget', name: N_('Foreman plugin template widget'), sizex: 4, sizey: 1
|
@@ -85,8 +76,5 @@ module ForemanHosts
|
|
85
76
|
locale_domain = 'foreman_hosts'
|
86
77
|
Foreman::Gettext::Support.add_text_domain locale_domain, locale_dir
|
87
78
|
end
|
88
|
-
initializer "foreman_chef.load_app_instance_data" do |app|
|
89
|
-
#app.config.paths['db/migrate'] += PluginTemplate::Engine.paths['db/migrate'].existent
|
90
|
-
end
|
91
79
|
end
|
92
80
|
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: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nested_form
|
@@ -90,14 +90,18 @@ files:
|
|
90
90
|
- app/views/foreman_hosts/syhostmodels/_list.html.erb
|
91
91
|
- app/views/foreman_hosts/syhostmodels/_form.html.erb
|
92
92
|
- app/views/foreman_hosts/syhostmodels/_sub.html.erb
|
93
|
+
- app/views/foreman_hosts/hosts/hosts/new_action.html.erb
|
94
|
+
- app/views/foreman_hosts/hosts/new_action.html.erb
|
93
95
|
- app/assets/javascripts/jquery.battatech.excelexport.js
|
94
96
|
- app/assets/javascripts/application.js
|
95
97
|
- app/overrides/dashboard/index/sample_override.html.erb.deface
|
96
98
|
- app/controllers/foreman_hosts/syhostmodeldetails_controller.rb
|
97
99
|
- app/controllers/foreman_hosts/syhostmodels_controller.rb
|
98
|
-
- app/
|
99
|
-
- app/
|
100
|
-
-
|
100
|
+
- app/controllers/foreman_hosts/hosts_controller.rb
|
101
|
+
- app/helpers/concerns/foreman_hosts/hosts_helper_extensions.rb
|
102
|
+
- app/models/syhostmodeldetail.rb
|
103
|
+
- app/models/syhostmodel.rb
|
104
|
+
- app/models/concerns/foreman_hosts/host_extensions.rb
|
101
105
|
- config/routes.rb
|
102
106
|
- db/migrate/20151015022411_create_syhostmodels.rb
|
103
107
|
- db/migrate/20151015050239_create_syhostmodeldetails.rb
|
data/bin/foreman-hosts
DELETED
File without changes
|
File without changes
|