vagrant-mos 0.9.9 → 0.9.10

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37cfa86fc6aad0e7cc34c5eaae39eaba052dde99
4
- data.tar.gz: 1709d31898e294465f70584f75d2fa5ca631807c
3
+ metadata.gz: 964331477b265dc25611e10c11ca99ddcccffc5f
4
+ data.tar.gz: a0ae12d1cabf89e89a658ec034c1cc4a03087eec
5
5
  SHA512:
6
- metadata.gz: b0cde8000ed77db9c44da6ca0c0507c271d86f143fbde7081804395ef86a886c11f186c6bb1b7d183758dd39e7ffbd6a174c9828d91a1c6684e483008d960d69
7
- data.tar.gz: 1014e56263174bb3a81c0b94335d2df5c18cbd131735eb8ee72c4459cf6903232dd5a3855d75a8779fc19e6985c914b38c3306bf9cc67c20d59a74b69fda9550
6
+ metadata.gz: 515b4eacfa9343c7b278f2c1f0aed0565ede52543980492ace19601a333a31a94a05b599bc8e6c2fcbbe32fc71b71ebf1b208a1078be96e5e7508401bd087599
7
+ data.tar.gz: c4f40ec3ec8f0ffb2cd3d672e1f457b18974898239dcc56b906fc584b85f5e1113fc697dade87aade6fc4bf68c559cae01a4977fe77fda63042d8df750aed4e5
@@ -1,7 +1,9 @@
1
1
  require "pathname"
2
2
  require_relative "action/connect_mos"
3
3
  require_relative "action/describe_templates"
4
- require "vagrant/action/builder"
4
+ #require "vagrant/action/builder"
5
+ require "mos-sdk"
6
+ include MOS
5
7
 
6
8
  module VagrantPlugins
7
9
  module MOS
@@ -15,8 +17,16 @@ module VagrantPlugins
15
17
 
16
18
  machine = @env.machine(:default, :mos)
17
19
  #puts machine.id
18
- #puts @env.mos_compute
19
- puts @env
20
+ #puts @env
21
+ region = machine.provider_config.region
22
+
23
+ # Get the configs
24
+ region_config = machine.provider_config.get_region_config(region)
25
+
26
+ @logger.info("Connecting to MOS...")
27
+ #env[:mos_compute] = Fog::Compute.new(fog_config)
28
+ env[:mos_compute] = Client.new(region_config.access_key_id, region_config.secret_access_key, region_config.secret_access_url)
29
+ env[:mos_compute].describe_templates
20
30
  0
21
31
  end
22
32
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module MOS
3
- VERSION = '0.9.9'
3
+ VERSION = '0.9.10'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-mos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - yangcs2009