vagrant-vsphere-ddns 0.0.1 → 0.0.2

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: 9a19f218ad9a80e8502c8d0055e560c146407609
4
- data.tar.gz: ad1b4de8e83023895691897eb3c7782c61e676dd
3
+ metadata.gz: e97a91cc097dadbd37d312c351a9b0e45bd5b21b
4
+ data.tar.gz: 66c19e1bd6a8c6fd95df74ebc444a0abef6027b6
5
5
  SHA512:
6
- metadata.gz: 39df719870d78d8202eee4bdd13d6d20eeaacfaeeb49e568007314842112f5f47860e629dbb62e520ee45c96640dd75e54c49250f5f8a9af023fa970c8c11c34
7
- data.tar.gz: ff5755841aa2075b885784d2b47c835809cfb333f01c73cf08aba2ce3cb28e63f0d78d13245eb3482620fc57fef14d8e8ffcdd1bbf69dcaeee37e62265fa1388
6
+ metadata.gz: 4db20af3d8ade721965180c4069f61111d3818513fbed0cb02a9df1c0eb54d151a193407a9ce7f21e7144b2c15d96068868926b7295489ae39742333d854aa9a
7
+ data.tar.gz: c0f09e92715a71a185678975eedc22369780199928cfd6474f70ea4ec13d954aa3eae2b0f4cc6ab1a5d752cb0a85b836941459059223d7a52cd7353ee0a187a1
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ cache: bundler
3
+ rvm:
4
+ - 2.2.3
5
+
6
+ before_install:
7
+ - rvm @global do gem uninstall bundler --all --executables
8
+ - gem uninstall bundler --all --executables
9
+ - gem install bundler --version '1.12.5'
10
+
11
+ sudo: false
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/tsmolka/vagrant-vsphere-ddns.svg?branch=master)](https://travis-ci.org/tsmolka/vagrant-vsphere-ddns) [![Gem Version](https://badge.fury.io/rb/vagrant-vsphere-ddns.svg)](http://badge.fury.io/rb/vagrant-vsphere-ddns)
2
+
1
3
  # Vagrant vSphere DDNS plugin
2
4
 
3
5
  This is a PoC [Vagrant](http://www.vagrantup.com) plugin that enables Vagrant to connect to vSphere VMs via dynamic domain names based on MAC addresses.
@@ -8,8 +10,8 @@ This configuration is however not implemented in the plugin itself and has to be
8
10
 
9
11
  ## Requirements
10
12
 
11
- * Vagrant
12
- * vagrant-vsphere plugin
13
+ * [Vagrant] (http://www.vagrantup.com)
14
+ * [vagrant-vsphere](https://github.com/nsidc/vagrant-vsphere) plugin
13
15
 
14
16
  ## Usage
15
17
 
@@ -40,7 +42,7 @@ end
40
42
  ```
41
43
 
42
44
  After running `vagrant up --provider=vsphere` Vagrant will attempt to reach VM using specified domain name
43
- (e.g. `005056a44d89.local`) and fail if this it can not be resolved for 2 minutes.
45
+ (e.g. `005056a44d89.local`) and fail if it can not be resolved for 2 minutes.
44
46
 
45
47
  ## DHCP and DNS settings
46
48
 
data/Rakefile CHANGED
@@ -1 +1,9 @@
1
- require "bundler/gem_tasks"
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require 'bundler/gem_tasks'
4
+
5
+ task :default => [:test]
6
+
7
+ task :test do
8
+
9
+ end
@@ -12,6 +12,8 @@ module VagrantPlugins
12
12
  end
13
13
 
14
14
  def call(env)
15
+ return if env[:machine_ssh_info].nil?
16
+
15
17
  timeout = env[:machine].config.ddns.ssh_timeout
16
18
  @logger.info("Trying to resolve #{env[:machine_ssh_info][:host]} (timeout #{timeout} seconds)")
17
19
 
@@ -7,12 +7,12 @@ module VagrantPlugins
7
7
  attr_accessor :ssh_timeout
8
8
 
9
9
  def initialize
10
- @host = UNSET_VALUE
11
- @ssh_timeout = UNSET_VALUE
10
+ @host = nil
11
+ @ssh_timeout = nil
12
12
  end
13
13
 
14
14
  def finalize!
15
- @ssh_timeout = 120 if @ssh_timeout == UNSET_VALUE
15
+ @ssh_timeout = 120 if @ssh_timeout.nil?
16
16
  end
17
17
 
18
18
  def validate(machine)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VSphereDDNS
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -13,7 +13,9 @@ Gem::Specification.new do |s|
13
13
  s.description = 'Enables Vagrant to connect to vSphere VMs via dynamic domain names based on MAC addresses'
14
14
  root_path = File.dirname(__FILE__)
15
15
  s.add_dependency 'vagrant-vsphere', '~> 1.9'
16
-
16
+
17
+ s.add_dependency 'rake'
18
+
17
19
  s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
18
20
  s.executables = s.files.grep(/^bin\//) { |f| File.basename(f) }
19
21
  s.require_path = 'lib'
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vsphere-ddns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-21 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vagrant-vsphere
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description: Enables Vagrant to connect to vSphere VMs via dynamic domain names based
28
42
  on MAC addresses
29
43
  email:
@@ -32,7 +46,8 @@ executables: []
32
46
  extensions: []
33
47
  extra_rdoc_files: []
34
48
  files:
35
- - ".gitignore"
49
+ - .gitignore
50
+ - .travis.yml
36
51
  - Gemfile
37
52
  - README.md
38
53
  - Rakefile
@@ -57,17 +72,17 @@ require_paths:
57
72
  - lib
58
73
  required_ruby_version: !ruby/object:Gem::Requirement
59
74
  requirements:
60
- - - ">="
75
+ - - '>='
61
76
  - !ruby/object:Gem::Version
62
77
  version: '0'
63
78
  required_rubygems_version: !ruby/object:Gem::Requirement
64
79
  requirements:
65
- - - ">="
80
+ - - '>='
66
81
  - !ruby/object:Gem::Version
67
82
  version: '0'
68
83
  requirements: []
69
84
  rubyforge_project:
70
- rubygems_version: 2.4.5.1
85
+ rubygems_version: 2.0.14.1
71
86
  signing_key:
72
87
  specification_version: 4
73
88
  summary: VMWare vSphere DDNS plugin