vgrnt 0.0.1 → 0.0.2
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 +4 -4
- data/CHANGELOG.md +2 -2
- data/lib/vgrnt/base.rb +3 -4
- data/lib/vgrnt/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: fb4cac36b1177589050fa58858980c56079b17de
|
|
4
|
+
data.tar.gz: 416ceaa0f01fb0180beebcef368b875a8c22f77d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 862fd1c84e7e9c1bd8b7b1a89b4e24f6bef0848d771cce4aa906fad992052a697d391b79b22acd84bdd16d77fc43fcc5b7f4cac392a3a192ecb65e8faa6f088f
|
|
7
|
+
data.tar.gz: 295bac036eab4ea6fdb88959080803d5d0bc63e7032926f1e3323a913b7c02c63537be72cec99caa1f8f22bb9e20eb93ad62a21d6b3669b6f8d28cce9a3c57c6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
## [0.0.2](https://github.com/dergachev/vagrant/compare/v0.0.1...v0.0.2) (Oct 30, 2013)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
BUGFIX:
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- Further improved ssh_info regex. Now works when "VBoxManage showvminfo" outputs: Forwarding(1)="ssh,tcp,,2222,,22"
|
|
6
6
|
|
|
7
7
|
## [0.0.1](https://github.com/dergachev/vgrnt/commits/v0.0.1) (Oct 30, 2013)
|
|
8
8
|
|
data/lib/vgrnt/base.rb
CHANGED
|
@@ -35,11 +35,12 @@ module Vgrnt
|
|
|
35
35
|
machine_status = `VBoxManage showvminfo #{machine_id} --machinereadable`
|
|
36
36
|
|
|
37
37
|
# Forwarding(0)="ssh,tcp,127.0.0.1,2222,,22"
|
|
38
|
-
|
|
38
|
+
# Forwarding(1)="ssh,tcp,,2222,,22"
|
|
39
|
+
ssh_info = machine_status.scan( /^Forwarding\(\d+\)="ssh,tcp,([0-9.]*),([0-9]+),/ ).first
|
|
39
40
|
|
|
40
41
|
machines[machine_name] = {
|
|
41
42
|
:id => machine_id,
|
|
42
|
-
:ssh_ip => ssh_info[0],
|
|
43
|
+
:ssh_ip => ssh_info[0].empty? ? '127.0.0.1' : ssh_info[0],
|
|
43
44
|
:ssh_port => ssh_info[1],
|
|
44
45
|
:state => machine_status.scan( /^VMState="(.*)"$/ ).first.first # VMState="running"
|
|
45
46
|
}
|
|
@@ -49,8 +50,6 @@ module Vgrnt
|
|
|
49
50
|
end
|
|
50
51
|
end
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
54
53
|
class App < Thor
|
|
55
54
|
|
|
56
55
|
def initialize(*args)
|
data/lib/vgrnt/version.rb
CHANGED