vagrant-mos 0.9.16 → 0.9.17
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/action/connect_mos.rb +0 -1
- data/lib/vagrant-mos/command.rb +2 -18
- 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: da07914512d1b63ac7ebb092082e181ac512c515
|
4
|
+
data.tar.gz: c0987cd76f9e7a1cb89790e80884147fad792449
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb3f34f42149dfc4460dfe57810df7c77073bcb6a0c254dbe517e0e4a4c4e0248f4996dd4849697ccd0f4457e89292b8d2ffaf7552342ca22d50c1e77050d7f0
|
7
|
+
data.tar.gz: 7fbc173d865a0ecf1b1a8d35d7766ed0818fdd1410749a87d9165f565f1d881f54c7f5f7b4448b5c82b8d916c216b92edd78046ffab926ac5b0e5097c33d8e3c
|
@@ -22,7 +22,6 @@ module VagrantPlugins
|
|
22
22
|
region_config = env[:machine].provider_config.get_region_config(region)
|
23
23
|
|
24
24
|
@logger.info("Connecting to MOS...")
|
25
|
-
#env[:mos_compute] = Fog::Compute.new(fog_config)
|
26
25
|
env[:mos_compute] = Client.new(region_config.access_key_id, region_config.secret_access_key, region_config.secret_access_url)
|
27
26
|
|
28
27
|
@app.call(env)
|
data/lib/vagrant-mos/command.rb
CHANGED
@@ -1,35 +1,19 @@
|
|
1
|
-
require "pathname"
|
2
|
-
require_relative "action/connect_mos"
|
3
|
-
require_relative "action/describe_templates"
|
4
|
-
#require "vagrant/action/builder"
|
5
|
-
require "pp"
|
6
1
|
require "mos-sdk"
|
7
2
|
include MOS
|
8
3
|
|
9
4
|
module VagrantPlugins
|
10
5
|
module MOS
|
11
6
|
class Command < Vagrant.plugin(2, :command)
|
12
|
-
# Include the built-in modules so we can use them as top-level things.
|
13
|
-
include Vagrant::Action::Builtin
|
14
|
-
# The autoload farm
|
15
|
-
|
16
7
|
def execute
|
17
|
-
puts "Hello!"
|
18
|
-
|
19
|
-
machine = @env.machine(:default, :mos)
|
20
|
-
#puts machine.id
|
21
|
-
#puts @env
|
22
8
|
region = machine.provider_config.region
|
23
9
|
|
24
10
|
# Get the configs
|
25
11
|
region_config = machine.provider_config.get_region_config(region)
|
26
12
|
|
27
13
|
@logger.info("Connecting to MOS...")
|
28
|
-
#env[:mos_compute] = Fog::Compute.new(fog_config)
|
29
14
|
mos_compute = Client.new(region_config.access_key_id, region_config.secret_access_key, region_config.secret_access_url)
|
30
|
-
|
31
|
-
|
32
|
-
|
15
|
+
results = mos_compute.describe_templates['Template']
|
16
|
+
puts results
|
33
17
|
0
|
34
18
|
end
|
35
19
|
|
data/lib/vagrant-mos/version.rb
CHANGED