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 +4 -4
- data/lib/vagrant-mos/command/mos-flavors.rb +24 -0
- data/lib/vagrant-mos/plugin.rb +5 -0
- data/lib/vagrant-mos/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7e963d98cc1da2c538d96b64cbf61ba2c971ac5
|
4
|
+
data.tar.gz: 5ac876543072de53e3d1c799e9881dbd36231092
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/vagrant-mos/plugin.rb
CHANGED
data/lib/vagrant-mos/version.rb
CHANGED
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.
|
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
|