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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f89aa649aed33c404287f973a5649ac462f5c0b6
4
- data.tar.gz: 1431f3d47799fb6f825f593ee005e99df1544d11
3
+ metadata.gz: da07914512d1b63ac7ebb092082e181ac512c515
4
+ data.tar.gz: c0987cd76f9e7a1cb89790e80884147fad792449
5
5
  SHA512:
6
- metadata.gz: 412707bf9b8604336c321258cb7a45317941581b60bd5a755266baf35d20f3d6ade2d312ba2e4ed96faab927cbdb50539b2b4cf30293269eeca79ac6648610c7
7
- data.tar.gz: c32e08d5b17a9615fb103b3aa4b9ae4014794547a7d8d71a1654734e68650f2d1f19a0dcb653eb21a6ecf7328b851f411721904ece5ba19e5e3cb80a8d7c82f8
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)
@@ -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
- result = mos_compute.describe_templates['Template']
31
- pp result
32
-
15
+ results = mos_compute.describe_templates['Template']
16
+ puts results
33
17
  0
34
18
  end
35
19
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module MOS
3
- VERSION = '0.9.16'
3
+ VERSION = '0.9.17'
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.16
4
+ version: 0.9.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - yangcs2009