vagrant-mos 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-mos/command.rb +13 -3
- data/lib/vagrant-mos/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 964331477b265dc25611e10c11ca99ddcccffc5f
|
4
|
+
data.tar.gz: a0ae12d1cabf89e89a658ec034c1cc4a03087eec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 515b4eacfa9343c7b278f2c1f0aed0565ede52543980492ace19601a333a31a94a05b599bc8e6c2fcbbe32fc71b71ebf1b208a1078be96e5e7508401bd087599
|
7
|
+
data.tar.gz: c4f40ec3ec8f0ffb2cd3d672e1f457b18974898239dcc56b906fc584b85f5e1113fc697dade87aade6fc4bf68c559cae01a4977fe77fda63042d8df750aed4e5
|
data/lib/vagrant-mos/command.rb
CHANGED
@@ -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
|
19
|
-
|
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
|
|
data/lib/vagrant-mos/version.rb
CHANGED