vagrant-vmpooler 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-vmpooler/action/create_server.rb +9 -0
- data/lib/vagrant-vmpooler/version.rb +1 -1
- data/locales/en.yml +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b04a37efa122bb02dbadb2ab25d3772daea4c41
|
4
|
+
data.tar.gz: d3b3c14a93f7e2ee5925d06cb6453386fbe381b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e651a3ce8fc17ba8ea054bbc197fd480c7e97a8fdeb93b84bfdb2686a44d8cc3f1cea86d03c7d4358e38f8e0e6d7b72e3ac06530737dab0b7be134e8ea5dda0f
|
7
|
+
data.tar.gz: 77d90671f953f9d151ecefda624ea77bc675ee49613a30606274869bc5d07879ac82657ede8ad49863e6bfacad941ecc6c880c3c59f344984137953ac2fff81a
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require "vmfloaty/pooler"
|
2
|
+
require "vagrant-vmpooler/version"
|
2
3
|
require "log4r"
|
3
4
|
|
4
5
|
require 'vagrant/util/retryable'
|
@@ -62,6 +63,14 @@ module VagrantPlugins
|
|
62
63
|
server_name = server[os]["hostname"]
|
63
64
|
env[:machine].id = server_name
|
64
65
|
|
66
|
+
tags = {}
|
67
|
+
tags['vagrant-vmpooler'] = VagrantPlugins::Vmpooler::VERSION
|
68
|
+
|
69
|
+
response_body = Pooler.modify(verbose, url, server_name, token, nil, tags)
|
70
|
+
if response_body['ok'] == false
|
71
|
+
env[:ui].warn(I18n.t("vagrant_vmpooler.errors.failed_tag"))
|
72
|
+
end
|
73
|
+
|
65
74
|
if ttl
|
66
75
|
response_body = Pooler.modify(verbose, url, server_name, token, ttl, nil)
|
67
76
|
if response_body['ok'] == false
|
data/locales/en.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-vmpooler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Cain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vmfloaty
|