foreman_azure 1.2.0 → 1.3.0

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: ff11e43b657e5177c3219bf100c07633639e0469
4
- data.tar.gz: 93a82f80824a9cdf07a1e799fd9602386c2a51dd
3
+ metadata.gz: 5c49b5ba37ba6675d70aede5365033a7b6f983ce
4
+ data.tar.gz: 3a0ab638f5955202e44d6659a3ade5345125e226
5
5
  SHA512:
6
- metadata.gz: 1deae213b992645d923eadfcb38ca7acb033b2e916af23d7d4efb3ae3849390f24799486cc75d10baeb063c404acef744f7ff30b42ec8916d54366385984574d
7
- data.tar.gz: f5aa26b324b488f1c4c8494c969a0fcacff0b417bc1ca466382c4db0f1a94f2480b045d6a65ed3be4c020a2abbea3d839e66b31609a4d4085fe2dd9c0c01e49a
6
+ metadata.gz: 28db263c18e2795cbe672b5bef1e2be12ac9ed09878f2164deb74c6e03a4fff68fb2c50eeae6ba5d33644e81afe7c3fd30bf9eab8e1fc5d63bd61091b6738fd1
7
+ data.tar.gz: 4c8a1580b46466c2d53d45b9b5c0af41cd6a59cd54a4713b34e7d3b4c74bcbdd22c0ff77c1e6c0629d8035636d6e6544dfb47561ff1e3ef3c07c7e0fd5719e14
@@ -16,7 +16,7 @@ module ForemanAzure
16
16
  end
17
17
 
18
18
  def capabilities
19
- [:image]
19
+ [:build, :image]
20
20
  end
21
21
 
22
22
  def self.model_name
@@ -0,0 +1,4 @@
1
+ domain = Domain.where(:name => 'cloudapp.net').first_or_create
2
+ if domain.nil? || domain.errors.any?
3
+ raise "Unable to create domain: #{format_errors domain}"
4
+ end
@@ -30,6 +30,12 @@ module ForemanAzure
30
30
  { :assets => { :precompile => ['foreman_azure/host_os_azure_selected.js'] } }
31
31
  end
32
32
 
33
+ initializer 'foreman_azure.load_app_instance_data' do |app|
34
+ ForemanAzure::Engine.paths['db/migrate'].existent.each do |path|
35
+ app.config.paths['db/migrate'] << path
36
+ end
37
+ end
38
+
33
39
  config.to_prepare do
34
40
  require 'fog/azure'
35
41
  require 'fog/azure/models/compute/servers'
@@ -1,3 +1,3 @@
1
1
  module ForemanAzure
2
- VERSION = '1.2.0'
2
+ VERSION = '1.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-17 00:00:00.000000000 Z
11
+ date: 2016-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-azure
@@ -79,6 +79,7 @@ files:
79
79
  - app/views/compute_resources_vms/show/_azure.html.erb
80
80
  - app/views/images/form/_azure.html.erb
81
81
  - config/routes.rb
82
+ - db/seeds.d/70-cloudapp-domain.rb
82
83
  - lib/foreman_azure.rb
83
84
  - lib/foreman_azure/engine.rb
84
85
  - lib/foreman_azure/version.rb