foreman_azure_rm 1.3.0 → 1.3.1

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: 5f5fde07cbdeff98c4fdbe93ff37e3ea3b5d49e6
4
- data.tar.gz: 421a4d296cba9822c16fa9222ffe8a3a6435acf4
3
+ metadata.gz: c1c4e6dbdc0dbe85c19fed181beb16d91aac9909
4
+ data.tar.gz: 84a125c8cccf9e472805d98b7841b1008d7f095d
5
5
  SHA512:
6
- metadata.gz: 2bb5ada194db14c8d37e58880d8dc84d276fb53f9deb92ab819c00161a400735a0b214e95bfe3c2c03fbafd237e0831b53b878b4cf6a7e3403a109a7a3880918
7
- data.tar.gz: 0e9dbf75d109f65391fbdd7e0296d7c5ebd59f1fc03459e237cd247a17fdb09f24cca0dd41920f0fb8c8362151257b4d895f719e28637757e8094641d8036acc
6
+ metadata.gz: db1923e2cc13efd600fe2fc3192556491043e656b9a92e3920f4368c0c1d37b53dbdb9f501f89b93dcae541a14c6aac1f95409ad1238bb06ac7f08b4d13caf5b
7
+ data.tar.gz: 7efdedb724d265fba4664acab40846fd10fee503cd5d52f3d499568ef89763fc3696dc840370796e6923763836651a883c7242059915cb7bcbf4d6c74f40b0cc
@@ -15,18 +15,6 @@ module ForemanAzureRM
15
15
  Foreman::Gettext::Support.add_text_domain locale_domain, locale_dir
16
16
  end
17
17
 
18
- initializer 'foreman_azure_rm.assets.precompile' do |app|
19
- app.config.assets.precompile += %w(foreman_azure_rm/azure_rm_size_from_location.js
20
- foreman_azure_rm/azure_rm_subnet_from_vnet.js
21
- foreman_azure_rm/azure_rm_location_callbacks.js)
22
- end
23
-
24
- initializer 'foreman_azure_rm.configure_assets', :group => :assets do
25
- SETTINGS[:foreman_azure_rm] = { :assets => { :precompile => %w(foreman_azure_rm/azure_rm_size_from_location.js
26
- foreman_azure_rm/azure_rm_subnet_from_vnet.js
27
- foreman_azure_rm/azure_rm_location_callbacks.js) } }
28
- end
29
-
30
18
  config.to_prepare do
31
19
  require 'fog/azurerm'
32
20
 
@@ -1,3 +1,3 @@
1
1
  module ForemanAzureRM
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_azure_rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Gregory
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-22 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-azure-rm-downgraded
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.3.1
27
- - !ruby/object:Gem::Dependency
28
- name: deface
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '2.0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "<"
39
- - !ruby/object:Gem::Version
40
- version: '2.0'
41
27
  description: This gem provides Azure Resource Manager as a compute resource for The
42
28
  Foreman
43
29
  email:
@@ -49,9 +35,6 @@ files:
49
35
  - LICENSE
50
36
  - README.md
51
37
  - Rakefile
52
- - app/assets/javascripts/foreman_azure_rm/azure_rm_location_callbacks.js
53
- - app/assets/javascripts/foreman_azure_rm/azure_rm_size_from_location.js
54
- - app/assets/javascripts/foreman_azure_rm/azure_rm_subnet_from_vnet.js
55
38
  - app/controllers/foreman_azure_rm/concerns/compute_resources_controller_extensions.rb
56
39
  - app/controllers/foreman_azure_rm/concerns/hosts_controller_extensions.rb
57
40
  - app/models/concerns/fog_extensions/azurerm/compute.rb
@@ -63,7 +46,6 @@ files:
63
46
  - app/models/concerns/fog_extensions/azurerm/server.rb
64
47
  - app/models/concerns/fog_extensions/azurerm/servers.rb
65
48
  - app/models/foreman_azure_rm/azure_rm.rb
66
- - app/overrides/add_location_size_js.rb
67
49
  - app/views/api/v1/compute_resources/azurerm.json.rabl
68
50
  - app/views/api/v2/compute_resources/available_resource_groups.rabl
69
51
  - app/views/api/v2/compute_resources/available_sizes.rabl
@@ -103,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
85
  version: '0'
104
86
  requirements: []
105
87
  rubyforge_project:
106
- rubygems_version: 2.2.5
88
+ rubygems_version: 2.4.5.1
107
89
  signing_key:
108
90
  specification_version: 4
109
91
  summary: Azure Resource Manager as a compute resource for The Foreman
@@ -1,72 +0,0 @@
1
- /**
2
- * Created by tgregory on 3/13/17.
3
- */
4
- function azure_rm_storage_accts_from_location() {
5
- var imageId = $('#host_compute_attributes_custom_data').val();
6
- var storage_accts = $('#azure_rm_storage_acct');
7
- var location = $('#azure_rm_location').val();
8
- if (typeof tfm == 'undefined') { // earlier than 1.13
9
- foreman.tools.showSpinner();
10
- } else {
11
- tfm.tools.showSpinner();
12
- }
13
- $.ajax({
14
- data: { "image_id": imageId, "location": location },
15
- type: "get",
16
- url: "/azure_rm/storage_accts",
17
- complete: function() {
18
- reloadOnAjaxComplete('#azure_rm_storage_acct');
19
- if (typeof tfm == 'undefined') { // earlier than 1.13
20
- foreman.tools.hideSpinner();
21
- } else {
22
- tfm.tools.hideSpinner();
23
- }
24
- },
25
- error: function(request, status, error) {
26
- console.log(status);
27
- console.log(request);
28
- console.log(error);
29
- },
30
- success: function(request_accts) {
31
- storage_accts.empty();
32
- $.each(request_accts, function() {
33
- storage_accts.append($("<option />").val(this).text(this));
34
- });
35
- }
36
- });
37
- }
38
-
39
- function azure_rm_vnets_from_location() {
40
- var imageId = $('#host_compute_attributes_custom_data').val();
41
- var vnets = $('#azure_rm_vnet');
42
- var location = $('#azure_rm_location').val();
43
- if (typeof tfm == 'undefined') { // earlier than 1.13
44
- foreman.tools.showSpinner();
45
- } else {
46
- tfm.tools.showSpinner();
47
- }
48
- $.ajax({
49
- data: { "image_id": imageId, "location": location },
50
- type: "get",
51
- url: "/azure_rm/vnets",
52
- complete: function() {
53
- reloadOnAjaxComplete('#azure_rm_storage_acct');
54
- if (typeof tfm == 'undefined') { // earlier than 1.13
55
- foreman.tools.hideSpinner();
56
- } else {
57
- tfm.tools.hideSpinner();
58
- }
59
- },
60
- error: function(request, status, error) {
61
- console.log(status);
62
- console.log(request);
63
- console.log(error);
64
- },
65
- success: function(request_vnets) {
66
- vnets.empty();
67
- $.each(request_vnets, function() {
68
- vnets.append($("<option />").val(this.id).text(this.name));
69
- });
70
- }
71
- });
72
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * Created by tgregory on 3/9/17.
3
- */
4
- function azure_rm_get_size_from_location() {
5
- var location = $('#azure_rm_location').val();
6
- var size_spinner = $('#azure_rm_size_spinner');
7
- var sizes = $('#azure_rm_size');
8
- var imageId = $('#host_compute_attributes_custom_data').val();
9
- if (typeof tfm == 'undefined') { // earlier than 1.13
10
- foreman.tools.showSpinner();
11
- } else {
12
- tfm.tools.showSpinner();
13
- }
14
- size_spinner.removeClass('hide');
15
- $.ajax({
16
- data: {"location_string": location, "image_id": imageId},
17
- type: 'get',
18
- url: '/azure_rm/sizes',
19
- complete: function() {
20
- reloadOnAjaxComplete('#azure_rm_size');
21
- size_spinner.addClass('hide');
22
- if (typeof tfm == 'undefined') { // earlier than 1.13
23
- foreman.tools.hideSpinner();
24
- } else {
25
- tfm.tools.hideSpinner();
26
- }
27
- },
28
- error: function(request, status, error) {
29
- console.log(request);
30
- console.log(error);
31
- },
32
- success: function(request_sizes) {
33
- sizes.empty();
34
- $.each(request_sizes, function() {
35
- sizes.append($("<option />").val(this).text(this));
36
- });
37
- }
38
- });
39
- }
@@ -1,39 +0,0 @@
1
- //TODO figure out how to refresh modal
2
-
3
- /**
4
- * Created by tgregory on 3/10/17.
5
- */
6
- function azure_rm_subnet_from_vnet() {
7
- var vnet = $('#azure_rm_vnet').val();
8
- var imageId = $('#host_compute_attributes_custom_data').val();
9
- var subnets = $('#azure_rm_subnet');
10
- if (typeof tfm == 'undefined') { // earlier than 1.13
11
- foreman.tools.showSpinner();
12
- } else {
13
- tfm.tools.showSpinner();
14
- }
15
- $.ajax({
16
- data: { "image_id": imageId, "vnet": vnet },
17
- type: "get",
18
- url: "/azure_rm/subnets",
19
- complete: function() {
20
- reloadOnAjaxComplete('#azure_rm_subnet');
21
- if (typeof tfm == 'undefined') { // earlier than 1.13
22
- foreman.tools.hideSpinner();
23
- } else {
24
- tfm.tools.hideSpinner();
25
- }
26
- },
27
- error: function(request, status, error) {
28
- console.log(status);
29
- console.log(request);
30
- console.log(error);
31
- },
32
- success: function(request_subnets) {
33
- subnets.empty();
34
- $.each(request_subnets, function() {
35
- subnets.append($("<option />").val(this.id).text(this.name));
36
- });
37
- }
38
- });
39
- }
@@ -1,20 +0,0 @@
1
- Deface::Override.new(
2
- :virtual_path => 'hosts/_form',
3
- :name => 'add_location_size_js',
4
- :insert_after => 'erb[loud]:contains("javascript")',
5
- :text => "<% javascript 'foreman_azure_rm/azure_rm_size_from_location' %>"
6
- )
7
-
8
- Deface::Override.new(
9
- :virtual_path => 'hosts/_form',
10
- :name => 'add_vnet_subnets_js',
11
- :insert_after => 'erb[loud]:contains("javascript")',
12
- :text => "<% javascript 'foreman_azure_rm/azure_rm_subnet_from_vnet' %>"
13
- )
14
-
15
- Deface::Override.new(
16
- :virtual_path => 'hosts/_form',
17
- :name => 'add_location_callbacks_js',
18
- :insert_after => 'erb[loud]:contains("javascript")',
19
- :text => "<% javascript 'foreman_azure_rm/azure_rm_location_callbacks' %>"
20
- )