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.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_proxmox/{proxmox_controller.rb → creations_controller.rb} +4 -2
  3. data/app/controllers/foreman_proxmox/hosts_controller.rb +10 -3
  4. data/app/helpers/concerns/foreman_proxmox/hosts_helper_extensions.rb +3 -3
  5. data/app/models/foreman_proxmox/proxmox_connection.rb +4 -0
  6. data/app/views/foreman_proxmox/hosts/proxmox.html.erb +15 -0
  7. data/config/routes.rb +15 -1
  8. data/config/routes/mount_engine.rb +3 -0
  9. data/db/migrate/20151006132039_create_foreman_proxmox_proxmox_connections.rb +11 -0
  10. data/lib/foreman_proxmox.rb +1 -1
  11. data/lib/foreman_proxmox/engine.rb +13 -9
  12. data/lib/foreman_proxmox/version.rb +1 -1
  13. data/lib/tasks/foreman_proxmox_tasks.rake +4 -49
  14. data/locale/en/foreman_proxmox.po +1 -2
  15. data/locale/foreman_proxmox.pot +1 -2
  16. data/test/controllers/foreman_proxmox/creations_controller_test.rb +13 -0
  17. data/test/controllers/foreman_proxmox/hosts_controller_test.rb +13 -0
  18. data/test/dummy/README.rdoc +28 -0
  19. data/test/dummy/Rakefile +6 -0
  20. data/test/dummy/app/assets/javascripts/application.js +13 -0
  21. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  22. data/test/dummy/app/controllers/application_controller.rb +5 -0
  23. data/test/dummy/app/helpers/application_helper.rb +2 -0
  24. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  25. data/test/dummy/bin/bundle +3 -0
  26. data/test/dummy/bin/rails +4 -0
  27. data/test/dummy/bin/rake +4 -0
  28. data/test/dummy/bin/setup +29 -0
  29. data/test/dummy/config.ru +4 -0
  30. data/test/dummy/config/application.rb +26 -0
  31. data/test/dummy/config/boot.rb +5 -0
  32. data/test/dummy/config/database.yml +25 -0
  33. data/test/dummy/config/environment.rb +5 -0
  34. data/test/dummy/config/environments/development.rb +41 -0
  35. data/test/dummy/config/environments/production.rb +79 -0
  36. data/test/dummy/config/environments/test.rb +42 -0
  37. data/test/dummy/config/initializers/assets.rb +11 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  40. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/test/dummy/config/initializers/inflections.rb +16 -0
  42. data/test/dummy/config/initializers/mime_types.rb +4 -0
  43. data/test/dummy/config/initializers/session_store.rb +3 -0
  44. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/test/dummy/config/locales/en.yml +23 -0
  46. data/test/dummy/config/routes.rb +4 -0
  47. data/test/dummy/config/secrets.yml +22 -0
  48. data/test/dummy/public/404.html +67 -0
  49. data/test/dummy/public/422.html +67 -0
  50. data/test/dummy/public/500.html +66 -0
  51. data/{app/views/foreman_proxmox/layouts/layouts/new_layout.html.erb → test/dummy/public/favicon.ico} +0 -0
  52. data/test/fixtures/foreman_proxmox/proxmox_connections.yml +11 -0
  53. data/test/foreman_proxmox_test.rb +7 -0
  54. data/test/integration/navigation_test.rb +10 -0
  55. data/test/models/foreman_proxmox/proxmox_connection_test.rb +9 -0
  56. data/test/test_helper.rb +20 -0
  57. metadata +104 -17
  58. data/app/models/concerns/foreman_proxmox/host_extensions.rb +0 -19
  59. data/app/overrides/dashboard/index/sample_override.html.erb.deface +0 -4
  60. data/app/views/dashboard/_foreman_proxmox_widget.html.erb +0 -2
  61. data/app/views/foreman_proxmox/hosts/hosts/new_action.html.erb +0 -1
  62. data/app/views/foreman_proxmox/hosts/new_action.html.erb +0 -1
  63. data/app/views/foreman_proxmox/layouts/new_layout.html.erb +0 -0
  64. data/test/factories/foreman_proxmox_factories.rb +0 -5
  65. data/test/test_plugin_helper.rb +0 -6
  66. 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>
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ one:
4
+ ip: MyString
5
+ username: MyString
6
+ password: MyString
7
+
8
+ two:
9
+ ip: MyString
10
+ username: MyString
11
+ password: MyString
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ForemanProxmoxTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, ForemanProxmox
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module ForemanProxmox
4
+ class ProxmoxConnectionTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -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.10
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-05 00:00:00.000000000 Z
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/concerns/foreman_proxmox/host_extensions.rb
55
- - app/overrides/dashboard/index/sample_override.html.erb.deface
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/factories/foreman_proxmox_factories.rb
71
- - test/test_plugin_helper.rb
72
- - test/unit/foreman_proxmox_test.rb
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.6
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/unit/foreman_proxmox_test.rb
98
- - test/factories/foreman_proxmox_factories.rb
99
- - test/test_plugin_helper.rb
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,4 +0,0 @@
1
- <!-- insert_before 'div:contains("title_action")' -->
2
- <%= title_actions "<h2>ForemanProxmox</h2>" %>
3
-
4
- <!-- vim: set ft=eruby : -->
@@ -1,2 +0,0 @@
1
- <h4 class="header ca"><%= _('ForemanProxmox') %></h4>
2
- <%= _('Widget content') %>
@@ -1 +0,0 @@
1
- Welcome to <b>ForemanProxmox</b>
@@ -1 +0,0 @@
1
- Welcome to <b>ForemanProxmox</b>
@@ -1,5 +0,0 @@
1
- FactoryGirl.define do
2
- factory :host do
3
- name 'foreman_proxmox'
4
- end
5
- end
@@ -1,6 +0,0 @@
1
- # This calls the main test_helper in Foreman-core
2
- require 'test_helper'
3
-
4
- # Add plugin to FactoryGirl's paths
5
- FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
6
- FactoryGirl.reload
@@ -1,11 +0,0 @@
1
- require 'test_plugin_helper'
2
-
3
- class ForemanProxmoxTest < ActiveSupport::TestCase
4
- setup do
5
- User.current = User.find_by_login 'admin'
6
- end
7
-
8
- test 'the truth' do
9
- assert true
10
- end
11
- end