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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e486440ea637821124539808198cc50957bb029b
4
- data.tar.gz: e554e152df419b00c8000868820e948eb5aa2347
3
+ metadata.gz: 4b04a37efa122bb02dbadb2ab25d3772daea4c41
4
+ data.tar.gz: d3b3c14a93f7e2ee5925d06cb6453386fbe381b8
5
5
  SHA512:
6
- metadata.gz: 882376fe4efc5110bd38861b3e90f0369de12f2dc36f2040bf0b914e9f1cc04d9f059a981d4bc6fb8a06f199bcaead92fa4dd77f41b76e6252806238b1de4404
7
- data.tar.gz: ab6784bc7c9201ca52e411ed3b31eaa3ab60786f4094e29b3b119f8974aee1cc0ab094794b40b637dd3e80cd134cb68e716e064ae03da8d91c0039ba4f71e45b
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Vmpooler
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
data/locales/en.yml CHANGED
@@ -85,6 +85,8 @@ en:
85
85
  Could not snapshot server.
86
86
  failed_ttl: |-
87
87
  Could not extend TTL on vm.
88
+ failed_tags: |-
89
+ Failed to tag vm.
88
90
  failed_disk_extend: |-
89
91
  Could not extend size of disk on vm.
90
92
  vmpooler_url_error: |-
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.2
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-07-18 00:00:00.000000000 Z
11
+ date: 2016-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vmfloaty