vagrant-mos 0.9.33 → 0.9.34

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: d987378c713459ff911bd78c1ce29ef049b21d27
4
- data.tar.gz: d53733e87fdc8fb2efe9e6024e8f3160ddab877c
3
+ metadata.gz: b7e963d98cc1da2c538d96b64cbf61ba2c971ac5
4
+ data.tar.gz: 5ac876543072de53e3d1c799e9881dbd36231092
5
5
  SHA512:
6
- metadata.gz: bbaa5cac21febafb41780fb14e339d585c0d23e8a580710640a92764de20518db01eacfbe504946fe6c42e5eb899849a0ec6d811b0c2aabc81f7bac92a27ffea
7
- data.tar.gz: b0526ae4f3648df7b13342b24f82540c394347ebf707a219de07d9bc50b5415c529bf293b619fa7cbf7f61ac7a765923626b325cd37deac2e7a9b3daa880abb0
6
+ metadata.gz: e6c0ef07820093f6e4e092291ae00ebde8d1714c20c44643fd4bdfbb6ca2e09a4b8186865017419565e6118fa5bf351e63cc137d4540187ffb9ded1fa9da847d
7
+ data.tar.gz: 59c1af2397f647fda869c843f63337e658661d112a4b088173b83460d460d748b898ad313a9946277fa2ae613a4582a22be967c0ae6c5d96834b565ce41f15c7
@@ -0,0 +1,24 @@
1
+ require "mos-sdk"
2
+ include MOS
3
+
4
+ module VagrantPlugins
5
+ module MOS
6
+ class Command < Vagrant.plugin(2, :command)
7
+ def execute
8
+ machine = @env.machine(:default, :mos)
9
+ region = machine.provider_config.region
10
+
11
+ # Get the configs
12
+ region_config = machine.provider_config.get_region_config(region)
13
+
14
+ @logger.info("Connecting to MOS...")
15
+ mos_compute = Client.new(region_config.access_key, region_config.access_secret, region_config.access_url)
16
+ results = mos_compute.describe_instance_types
17
+ puts results
18
+ 0
19
+ end
20
+
21
+
22
+ end
23
+ end
24
+ end
@@ -29,6 +29,11 @@ module VagrantPlugins
29
29
  Command
30
30
  end
31
31
 
32
+ command "mos-flavors" do
33
+ require_relative "command/mos-flavors"
34
+ Command
35
+ end
36
+
32
37
  provider(:mos, parallel: true) do
33
38
  # Setup logging and i18n
34
39
  setup_logging
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module MOS
3
- VERSION = '0.9.33'
3
+ VERSION = '0.9.34'
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.33
4
+ version: 0.9.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - yangcs2009
@@ -113,6 +113,7 @@ files:
113
113
  - lib/vagrant-mos/action/timed_provision.rb
114
114
  - lib/vagrant-mos/action/wait_for_state.rb
115
115
  - lib/vagrant-mos/action/warn_networks.rb
116
+ - lib/vagrant-mos/command/mos-flavors.rb
116
117
  - lib/vagrant-mos/command/mos-templates.rb
117
118
  - lib/vagrant-mos/config.rb
118
119
  - lib/vagrant-mos/errors.rb