vagrant-mcs 0.7.19 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67175378a010cdd93aee4e4c9e38856b70fabc2a
4
- data.tar.gz: bc2f84cc9821e66ba00ffdca4683e97fdcf9b054
3
+ metadata.gz: fb067a2774d3e31fba31c9c68a906d3a1d3a8fea
4
+ data.tar.gz: b94b4299fd2789246bf1590e3cc100a23b1806f9
5
5
  SHA512:
6
- metadata.gz: cd77a83c7b6e6ee8b2faeed014b19bb97c6fc92eec22f7e20b65cef0591a4f2265d1b9063c656cd6980316032b25512efe4562bc481d593b84224ce4440fc803
7
- data.tar.gz: 11da486be067b069d4fc76411513ee14709adf939977460372df948aa8d2c4c8c58b1dc737d8414e1f8997dac690f861e1044abe44f9a5cf7853f8002b7e96a0
6
+ metadata.gz: 3e71b719a603a2d632b250e82ef23e58d52e0922909c16cd5db65908c2331e87b5189c2c3aac5b26183c0568a3b390212d5983e39ebd0370bbd3a8ad625791a0
7
+ data.tar.gz: aefcae324c5a0db9d9fd11642d80cebeb07f1339e69840ef7822b935306600e0929d75dc3360421c119b9e05b5f6baf4dd22a384473d1cbf602a65bdcec29814
@@ -7,7 +7,7 @@ module VagrantPlugins
7
7
  # `:machine_ssh_info` key in the environment.
8
8
  class ReadSSHInfo
9
9
  def initialize(app, env)
10
- @app = app
10
+ @app = app
11
11
  @logger = Log4r::Logger.new("vagrant_mcs::action::read_ssh_info")
12
12
  end
13
13
 
@@ -38,16 +38,23 @@ module VagrantPlugins
38
38
  ssh_attrs = (Array(ssh_host_attribute) + ssh_attrs).uniq if ssh_host_attribute
39
39
  # try each attribute, get out on first value
40
40
  host_value = nil
41
+ puts server
41
42
  while !host_value and attr_name = ssh_attrs.shift
42
43
  begin
43
- puts attr_name
44
44
  host_value = server.send(attr_name)
45
45
  rescue NoMethodError
46
46
  @logger.info("SSH host attribute not found #{attr_name}")
47
47
  end
48
48
  end
49
+ puts 2
49
50
 
50
- return { :host => host_value, :port => 22 }
51
+ if !host_value
52
+ host_value = server["ipAddresses"]
53
+ end
54
+ puts server["ipAddresses"]
55
+ puts host_value
56
+ puts 3
57
+ return {:host => host_value, :port => 22}
51
58
  end
52
59
  end
53
60
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module MCS
3
- VERSION = '0.7.19'
3
+ VERSION = '0.8.1'
4
4
  end
5
5
  end
data/vagrant-mcs.gemspec CHANGED
@@ -6,17 +6,17 @@ Gem::Specification.new do |s|
6
6
  s.version = VagrantPlugins::MCS::VERSION
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.license = "MIT"
9
- s.authors = "Mitchell Hashimoto"
10
- s.email = "mitchell@hashicorp.com"
9
+ s.authors = "yangchangsheng"
10
+ s.email = "yangchangsheng@meituan.com"
11
11
  s.homepage = "http://www.vagrantup.com"
12
- s.summary = "Enables Vagrant to manage machines in EC2 and VPC."
13
- s.description = "Enables Vagrant to manage machines in EC2 and VPC."
12
+ s.summary = "Enables Vagrant to manage machines in MCS."
13
+ s.description = "Enables Vagrant to manage machines in MCS."
14
14
 
15
15
  s.required_rubygems_version = ">= 1.3.6"
16
16
  s.rubyforge_project = "vagrant-mcs"
17
17
 
18
18
  s.add_runtime_dependency "fog", "~> 1.22"
19
- s.add_runtime_dependency "mos_sdk", ">= 0"
19
+ s.add_runtime_dependency "mos_sdk", ">= 1.0.0"
20
20
 
21
21
  s.add_runtime_dependency "crack", "~> 0.4.2"
22
22
  s.add_development_dependency "rake"
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-mcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.19
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
- - Mitchell Hashimoto
7
+ - yangchangsheng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 1.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 1.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: crack
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -94,13 +94,12 @@ dependencies:
94
94
  - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- description: Enables Vagrant to manage machines in EC2 and VPC.
98
- email: mitchell@hashicorp.com
97
+ description: Enables Vagrant to manage machines in MCS.
98
+ email: yangchangsheng@meituan.com
99
99
  executables: []
100
100
  extensions: []
101
101
  extra_rdoc_files: []
102
102
  files:
103
- - .DS_Store
104
103
  - CHANGELOG.md
105
104
  - Gemfile
106
105
  - LICENSE
@@ -108,12 +107,10 @@ files:
108
107
  - Rakefile
109
108
  - Vagrantfile
110
109
  - dummy.box
111
- - example_box/.DS_Store
112
110
  - example_box/README.md
113
111
  - example_box/Vagrantfile
114
112
  - example_box/mcs.box
115
113
  - example_box/metadata.json
116
- - lib/.DS_Store
117
114
  - lib/vagrant-mcs.rb
118
115
  - lib/vagrant-mcs/action.rb
119
116
  - lib/vagrant-mcs/action/connect_mcs.rb
@@ -147,12 +144,6 @@ files:
147
144
  - spec/vagrant-aws/config_spec.rb
148
145
  - templates/metadata.json.erb
149
146
  - templates/vagrant-aws_package_Vagrantfile.erb
150
- - vagrant-mcs-0.7.12.gem
151
- - vagrant-mcs-0.7.13.gem
152
- - vagrant-mcs-0.7.15.gem
153
- - vagrant-mcs-0.7.16.gem
154
- - vagrant-mcs-0.7.17.gem
155
- - vagrant-mcs-0.7.18.gem
156
147
  - vagrant-mcs.gemspec
157
148
  homepage: http://www.vagrantup.com
158
149
  licenses:
@@ -177,5 +168,5 @@ rubyforge_project: vagrant-mcs
177
168
  rubygems_version: 2.4.5
178
169
  signing_key:
179
170
  specification_version: 4
180
- summary: Enables Vagrant to manage machines in EC2 and VPC.
171
+ summary: Enables Vagrant to manage machines in MCS.
181
172
  test_files: []
data/.DS_Store DELETED
Binary file
Binary file
data/lib/.DS_Store DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file