foreman_proxmox 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/foreman_proxmox/{proxmox_controller.rb → creations_controller.rb} +4 -2
- data/app/controllers/foreman_proxmox/hosts_controller.rb +10 -3
- data/app/helpers/concerns/foreman_proxmox/hosts_helper_extensions.rb +3 -3
- data/app/models/foreman_proxmox/proxmox_connection.rb +4 -0
- data/app/views/foreman_proxmox/hosts/proxmox.html.erb +15 -0
- data/config/routes.rb +15 -1
- data/config/routes/mount_engine.rb +3 -0
- data/db/migrate/20151006132039_create_foreman_proxmox_proxmox_connections.rb +11 -0
- data/lib/foreman_proxmox.rb +1 -1
- data/lib/foreman_proxmox/engine.rb +13 -9
- data/lib/foreman_proxmox/version.rb +1 -1
- data/lib/tasks/foreman_proxmox_tasks.rake +4 -49
- data/locale/en/foreman_proxmox.po +1 -2
- data/locale/foreman_proxmox.pot +1 -2
- data/test/controllers/foreman_proxmox/creations_controller_test.rb +13 -0
- data/test/controllers/foreman_proxmox/hosts_controller_test.rb +13 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/{app/views/foreman_proxmox/layouts/layouts/new_layout.html.erb → test/dummy/public/favicon.ico} +0 -0
- data/test/fixtures/foreman_proxmox/proxmox_connections.yml +11 -0
- data/test/foreman_proxmox_test.rb +7 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/models/foreman_proxmox/proxmox_connection_test.rb +9 -0
- data/test/test_helper.rb +20 -0
- metadata +104 -17
- data/app/models/concerns/foreman_proxmox/host_extensions.rb +0 -19
- data/app/overrides/dashboard/index/sample_override.html.erb.deface +0 -4
- data/app/views/dashboard/_foreman_proxmox_widget.html.erb +0 -2
- data/app/views/foreman_proxmox/hosts/hosts/new_action.html.erb +0 -1
- data/app/views/foreman_proxmox/hosts/new_action.html.erb +0 -1
- data/app/views/foreman_proxmox/layouts/new_layout.html.erb +0 -0
- data/test/factories/foreman_proxmox_factories.rb +0 -5
- data/test/test_plugin_helper.rb +0 -6
- data/test/unit/foreman_proxmox_test.rb +0 -11
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
data/{app/views/foreman_proxmox/layouts/layouts/new_layout.html.erb → test/dummy/public/favicon.ico}
RENAMED
File without changes
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
|
+
ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
|
7
|
+
require "rails/test_help"
|
8
|
+
|
9
|
+
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
10
|
+
# to be shown.
|
11
|
+
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
12
|
+
|
13
|
+
# Load support files
|
14
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
15
|
+
|
16
|
+
# Load fixtures from the engine
|
17
|
+
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
18
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
19
|
+
ActiveSupport::TestCase.fixtures :all
|
20
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_proxmox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Isensee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rest-client
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rubocop
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -48,17 +62,14 @@ files:
|
|
48
62
|
- LICENSE
|
49
63
|
- README.md
|
50
64
|
- Rakefile
|
65
|
+
- app/controllers/foreman_proxmox/creations_controller.rb
|
51
66
|
- app/controllers/foreman_proxmox/hosts_controller.rb
|
52
|
-
- app/controllers/foreman_proxmox/proxmox_controller.rb
|
53
67
|
- app/helpers/concerns/foreman_proxmox/hosts_helper_extensions.rb
|
54
|
-
- app/models/
|
55
|
-
- app/
|
56
|
-
- app/views/dashboard/_foreman_proxmox_widget.html.erb
|
57
|
-
- app/views/foreman_proxmox/hosts/hosts/new_action.html.erb
|
58
|
-
- app/views/foreman_proxmox/hosts/new_action.html.erb
|
59
|
-
- app/views/foreman_proxmox/layouts/layouts/new_layout.html.erb
|
60
|
-
- app/views/foreman_proxmox/layouts/new_layout.html.erb
|
68
|
+
- app/models/foreman_proxmox/proxmox_connection.rb
|
69
|
+
- app/views/foreman_proxmox/hosts/proxmox.html.erb
|
61
70
|
- config/routes.rb
|
71
|
+
- config/routes/mount_engine.rb
|
72
|
+
- db/migrate/20151006132039_create_foreman_proxmox_proxmox_connections.rb
|
62
73
|
- lib/foreman_proxmox.rb
|
63
74
|
- lib/foreman_proxmox/engine.rb
|
64
75
|
- lib/foreman_proxmox/version.rb
|
@@ -67,9 +78,47 @@ files:
|
|
67
78
|
- locale/en/foreman_proxmox.po
|
68
79
|
- locale/foreman_proxmox.pot
|
69
80
|
- locale/gemspec.rb
|
70
|
-
- test/
|
71
|
-
- test/
|
72
|
-
- test/
|
81
|
+
- test/controllers/foreman_proxmox/creations_controller_test.rb
|
82
|
+
- test/controllers/foreman_proxmox/hosts_controller_test.rb
|
83
|
+
- test/dummy/README.rdoc
|
84
|
+
- test/dummy/Rakefile
|
85
|
+
- test/dummy/app/assets/javascripts/application.js
|
86
|
+
- test/dummy/app/assets/stylesheets/application.css
|
87
|
+
- test/dummy/app/controllers/application_controller.rb
|
88
|
+
- test/dummy/app/helpers/application_helper.rb
|
89
|
+
- test/dummy/app/views/layouts/application.html.erb
|
90
|
+
- test/dummy/bin/bundle
|
91
|
+
- test/dummy/bin/rails
|
92
|
+
- test/dummy/bin/rake
|
93
|
+
- test/dummy/bin/setup
|
94
|
+
- test/dummy/config.ru
|
95
|
+
- test/dummy/config/application.rb
|
96
|
+
- test/dummy/config/boot.rb
|
97
|
+
- test/dummy/config/database.yml
|
98
|
+
- test/dummy/config/environment.rb
|
99
|
+
- test/dummy/config/environments/development.rb
|
100
|
+
- test/dummy/config/environments/production.rb
|
101
|
+
- test/dummy/config/environments/test.rb
|
102
|
+
- test/dummy/config/initializers/assets.rb
|
103
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
104
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
105
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
106
|
+
- test/dummy/config/initializers/inflections.rb
|
107
|
+
- test/dummy/config/initializers/mime_types.rb
|
108
|
+
- test/dummy/config/initializers/session_store.rb
|
109
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
110
|
+
- test/dummy/config/locales/en.yml
|
111
|
+
- test/dummy/config/routes.rb
|
112
|
+
- test/dummy/config/secrets.yml
|
113
|
+
- test/dummy/public/404.html
|
114
|
+
- test/dummy/public/422.html
|
115
|
+
- test/dummy/public/500.html
|
116
|
+
- test/dummy/public/favicon.ico
|
117
|
+
- test/fixtures/foreman_proxmox/proxmox_connections.yml
|
118
|
+
- test/foreman_proxmox_test.rb
|
119
|
+
- test/integration/navigation_test.rb
|
120
|
+
- test/models/foreman_proxmox/proxmox_connection_test.rb
|
121
|
+
- test/test_helper.rb
|
73
122
|
homepage: http://github.com/fiesensee/foreman_proxmox
|
74
123
|
licenses: []
|
75
124
|
metadata: {}
|
@@ -89,11 +138,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
138
|
version: '0'
|
90
139
|
requirements: []
|
91
140
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.4.
|
141
|
+
rubygems_version: 2.4.8
|
93
142
|
signing_key:
|
94
143
|
specification_version: 4
|
95
144
|
summary: Proxmox support for foreman
|
96
145
|
test_files:
|
97
|
-
- test/
|
98
|
-
- test/
|
99
|
-
- test/
|
146
|
+
- test/integration/navigation_test.rb
|
147
|
+
- test/fixtures/foreman_proxmox/proxmox_connections.yml
|
148
|
+
- test/models/foreman_proxmox/proxmox_connection_test.rb
|
149
|
+
- test/dummy/app/assets/stylesheets/application.css
|
150
|
+
- test/dummy/app/assets/javascripts/application.js
|
151
|
+
- test/dummy/app/controllers/application_controller.rb
|
152
|
+
- test/dummy/app/views/layouts/application.html.erb
|
153
|
+
- test/dummy/app/helpers/application_helper.rb
|
154
|
+
- test/dummy/bin/bundle
|
155
|
+
- test/dummy/bin/setup
|
156
|
+
- test/dummy/bin/rails
|
157
|
+
- test/dummy/bin/rake
|
158
|
+
- test/dummy/config.ru
|
159
|
+
- test/dummy/README.rdoc
|
160
|
+
- test/dummy/public/422.html
|
161
|
+
- test/dummy/public/500.html
|
162
|
+
- test/dummy/public/favicon.ico
|
163
|
+
- test/dummy/public/404.html
|
164
|
+
- test/dummy/config/secrets.yml
|
165
|
+
- test/dummy/config/locales/en.yml
|
166
|
+
- test/dummy/config/environments/development.rb
|
167
|
+
- test/dummy/config/environments/test.rb
|
168
|
+
- test/dummy/config/environments/production.rb
|
169
|
+
- test/dummy/config/routes.rb
|
170
|
+
- test/dummy/config/database.yml
|
171
|
+
- test/dummy/config/application.rb
|
172
|
+
- test/dummy/config/boot.rb
|
173
|
+
- test/dummy/config/environment.rb
|
174
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
175
|
+
- test/dummy/config/initializers/inflections.rb
|
176
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
177
|
+
- test/dummy/config/initializers/assets.rb
|
178
|
+
- test/dummy/config/initializers/mime_types.rb
|
179
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
180
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
181
|
+
- test/dummy/config/initializers/session_store.rb
|
182
|
+
- test/dummy/Rakefile
|
183
|
+
- test/test_helper.rb
|
184
|
+
- test/controllers/foreman_proxmox/creations_controller_test.rb
|
185
|
+
- test/controllers/foreman_proxmox/hosts_controller_test.rb
|
186
|
+
- test/foreman_proxmox_test.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module ForemanProxmox
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
Welcome to <b>ForemanProxmox</b>
|
@@ -1 +0,0 @@
|
|
1
|
-
Welcome to <b>ForemanProxmox</b>
|
File without changes
|
data/test/test_plugin_helper.rb
DELETED