vagrant-guestip 0.1 → 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/README.md +6 -2
- data/lib/command.rb +1 -1
- data/lib/vagrant-guestip.rb +1 -1
- data/vagrant-guestip.gemspec +3 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 012f7943490e23457d65ef517be14c387cd4bc76
|
4
|
+
data.tar.gz: 0a113808664935108d173c7f0d5c914f4b6761e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d685b707a01a1faf9753ed967f5d201053d15f7bbf4b5106d29e4f1ca42db9fef16d76f2304a52ff9924fb2e65bdbd089456fad11cea0df8c5b0562302a22042
|
7
|
+
data.tar.gz: c1a69ce789719cb06b2d66633eaafd6587d3471b33e06fb53f2451b3362b947f3504bb5c75ecc852e9bc3ece8c8772f4c8f230fc1549ffc189c9dd51c059cf21
|
data/README.md
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
# vagrant-guestip plugin
|
2
|
+
This plugin allows obtaining an IP address of a guest machine.
|
3
|
+
It's compatible with machines started remotely, i.e. by vSphere or AWS providers.
|
2
4
|
|
3
5
|
## Installation
|
4
|
-
|
5
6
|
$ vagrant plugin install vagrant-guestip
|
6
7
|
|
7
8
|
## Usage
|
9
|
+
$ vagrant guestip
|
8
10
|
|
9
|
-
|
11
|
+
## Using with TeamCity
|
12
|
+
Running the command under JetBrains [TeamCity](https://www.jetbrains.com/teamcity/) build, it creates `VAGRANT_GUESTIP` environment variable which can be referenced by following build scripts.
|
13
|
+
**Note:** the variable is added by a [service message](https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity). It requires the command and a build script are placed into separate build steps.
|
data/lib/command.rb
CHANGED
@@ -8,7 +8,7 @@ module VagrantPlugins
|
|
8
8
|
def execute
|
9
9
|
with_target_vms(nil, {:single_target=>true}) do |machine|
|
10
10
|
ip = machine.guest.capability(:read_ip_address)
|
11
|
-
message = ENV['TEAMCITY_VERSION'] ? "##teamcity[setParameter name='env.
|
11
|
+
message = ENV['TEAMCITY_VERSION'] ? "##teamcity[setParameter name='env.VAGRANT_GUESTIP' value='#{ip}']" : ip
|
12
12
|
@env.ui.info(message)
|
13
13
|
end
|
14
14
|
end
|
data/lib/vagrant-guestip.rb
CHANGED
data/vagrant-guestip.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'vagrant-guestip'
|
3
|
-
spec.version = '0.
|
3
|
+
spec.version = '0.2'
|
4
4
|
spec.authors = ['Michael Kuzmin']
|
5
5
|
spec.email = ['mkuzmin@gmail.com']
|
6
|
-
spec.summary = 'Vagrant plugin for obtaining IP address of guest machine'
|
7
|
-
spec.homepage = 'https://github.com/mkuzmin/vagrant-
|
6
|
+
spec.summary = 'Vagrant plugin for obtaining IP address of a guest machine'
|
7
|
+
spec.homepage = 'https://github.com/mkuzmin/vagrant-guestip'
|
8
8
|
spec.license = 'MIT'
|
9
9
|
|
10
10
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-guestip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kuzmin
|
@@ -53,7 +53,7 @@ files:
|
|
53
53
|
- lib/command.rb
|
54
54
|
- lib/vagrant-guestip.rb
|
55
55
|
- vagrant-guestip.gemspec
|
56
|
-
homepage: https://github.com/mkuzmin/vagrant-
|
56
|
+
homepage: https://github.com/mkuzmin/vagrant-guestip
|
57
57
|
licenses:
|
58
58
|
- MIT
|
59
59
|
metadata: {}
|
@@ -76,5 +76,6 @@ rubyforge_project:
|
|
76
76
|
rubygems_version: 2.2.2
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
|
-
summary: Vagrant plugin for obtaining IP address of guest machine
|
79
|
+
summary: Vagrant plugin for obtaining IP address of a guest machine
|
80
80
|
test_files: []
|
81
|
+
has_rdoc:
|