vagrant-openstack-cloud-provider 1.1.4 → 1.1.5

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDBkNjliNDMzNGM0Njc0Yjc4YTJlYzgzMWViYjM2ZTJiM2YzMzc0OA==
4
+ NTIzYzQ2NDRjZjA0NDQ0OTU0ZWNkYzAxY2QzNjVjOWIxYmU5MzY5YQ==
5
5
  data.tar.gz: !binary |-
6
- MWYwMjhmMzM1NDg5YTE5ZWUzYTM1NDQ4ODJjOGI1ZjIzNGEwNTY4Zg==
6
+ Mzc3NTljZmI3ZDBhNDFlZGY0NTlmZmE4NTdjMTQ0YzMwNTRiMTEwOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Yzg1YjI2MDYyODE1ODYyMDhjNmQ5YmI3MWFkOTZmZGVjZjM3MTAzMGE1ZWVh
10
- NTkxYzUwOGU2OGVlYTcwZTdlODAzNzc4NzBjOWNlZDBjYzI3YWFmY2EwYTYy
11
- M2IxMDdjYWEzYzg4ZTBiMjI4YjljNzY2MDBjMGZhMTU0YjA0OGQ=
9
+ MWZiOTljNWQyNDNkYzA0ZDEwMjZkNzdkMmRmZTA4OGI0ZTllMDI4MjRiMGQ1
10
+ MzAzNjI4NDZlNWIwY2U1MWMwNzlmODU4ZDJhMTNiOWIyNjE1MGEyZTZlZWIz
11
+ NGQzYWJlNzkwYzM0MDc5ODhlZDczNDYxN2Q0MWM0MDEzMjRmNjU=
12
12
  data.tar.gz: !binary |-
13
- ZDQ1ZDM1ZTk3MTJiZTM4ODAwZjc5NjVlNjkxMmVhMTdlNGMwZDQ3NDk0Y2Rh
14
- ZjUyOTI4MzVhZDM1NTEwNTBjNzE0OTZhNzhiMjA2OWE3NmIyMDU4ODE0YzAy
15
- MTgxMjI4ZGJhMDI1NDI3MTgxOTI3YTE4NjU2YmJkOTNmYmFlOGE=
13
+ Mjk3M2NlNjk3OTY5Yjc3ZTY3NDUxMGFiZGRkNDQxNTkzYmE3ZmRhNjZhODk0
14
+ YTFhOTczMDYyZmQ2MTJmYmJiYWUyNDgyNmU2MjRkM2M4NmFiYmY1M2MwZDA2
15
+ ZmQzMDg0MmI1MDdjNGM0MzcxNWZlMDg0NWVmODg2YTU3MGNhNDg=
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module OpenStack
3
- VERSION = "1.1.4"
3
+ VERSION = "1.1.5"
4
4
  end
5
5
  end
@@ -0,0 +1,53 @@
1
+ require "pathname"
2
+
3
+ require "vagrant-openstack-cloud-provider/plugin"
4
+
5
+ module VagrantPlugins
6
+ module OpenStack
7
+ lib_path = Pathname.new(File.expand_path("../vagrant-openstack-cloud-provider", __FILE__))
8
+ autoload :Errors, lib_path.join("errors")
9
+
10
+ # This initializes the i18n load path so that the plugin-specific
11
+ # translations work.
12
+ def self.init_i18n
13
+ I18n.load_path << File.expand_path("locales/en.yml", source_root)
14
+ I18n.reload!
15
+ end
16
+
17
+ # This initializes the logging so that our logs are outputted at
18
+ # the same level as Vagrant core logs.
19
+ def self.init_logging
20
+ # Initialize logging
21
+ level = nil
22
+ begin
23
+ level = Log4r.const_get(ENV["VAGRANT_LOG"].upcase)
24
+ rescue NameError
25
+ # This means that the logging constant wasn't found,
26
+ # which is fine. We just keep `level` as `nil`. But
27
+ # we tell the user.
28
+ level = nil
29
+ end
30
+
31
+ # Some constants, such as "true" resolve to booleans, so the
32
+ # above error checking doesn't catch it. This will check to make
33
+ # sure that the log level is an integer, as Log4r requires.
34
+ level = nil if !level.is_a?(Integer)
35
+
36
+ # Set the logging level on all "vagrant" namespaced
37
+ # logs as long as we have a valid level.
38
+ if level
39
+ logger = Log4r::Logger.new("vagrant_openstack")
40
+ logger.outputters = Log4r::Outputter.stderr
41
+ logger.level = level
42
+ logger = nil
43
+ end
44
+ end
45
+
46
+ # This returns the path to the source of this plugin.
47
+ #
48
+ # @return [Pathname]
49
+ def self.source_root
50
+ @source_root ||= Pathname.new(File.expand_path("../../", __FILE__))
51
+ end
52
+ end
53
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-openstack-cloud-provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathieu Mitchell
@@ -86,6 +86,7 @@ files:
86
86
  - lib/vagrant-openstack-cloud-provider/plugin.rb
87
87
  - lib/vagrant-openstack-cloud-provider/provider.rb
88
88
  - lib/vagrant-openstack-cloud-provider/version.rb
89
+ - lib/vagrant-openstack.rb
89
90
  - locales/en.yml
90
91
  - spec/spec_helper.rb
91
92
  - spec/vagrant-openstack-cloud-provider/action/create_server_spec.rb