vagrant-pe_build 0.13.1 → 0.13.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 +13 -0
- data/lib/pe_build/config/pe_agent.rb +3 -1
- data/lib/pe_build/provisioner/pe_agent.rb +1 -1
- data/lib/pe_build/version.rb +1 -1
- data/spec/unit/config/pe_agent_spec.rb +10 -1
- 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: 15a722c813eadf66cdeb91e2261776d317833807
|
4
|
+
data.tar.gz: 15f41c255df414d9ad264cbf18ca8d528e7ece08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1dd56b985021bf542ca4e3e2c867296baf708b464ce0e58347ac784e3f23322bc5f165e8a3534b7160b1e6cc0cdd296008ccb9c4f22a13424b8f7796453aa1f
|
7
|
+
data.tar.gz: 2cf402d68a8d7eb61785fad6f38fdc7efd226950f6fd4acf1853569d1bb2a5267c19ec75f47b1814d559949b6b3ebf7b68674d29086be393a536369e3172d8b8
|
data/CHANGELOG
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
vagrant-pe_build
|
2
2
|
================
|
3
3
|
|
4
|
+
0.13.2
|
5
|
+
------
|
6
|
+
|
7
|
+
2015-10-31
|
8
|
+
|
9
|
+
This is a backwards compatible bugfix release.
|
10
|
+
|
11
|
+
* (GH-104) Fixed an issue where the `pe_agent` provisioner would reject
|
12
|
+
PE version 2015.2.0 as being "too old".
|
13
|
+
|
14
|
+
* (GH-105) Fixed an issue where the `pe_agent` provisioner would raise
|
15
|
+
an error during agent deletion if the master wasn't created.
|
16
|
+
|
4
17
|
0.13.1
|
5
18
|
------
|
6
19
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'pe_build/util/version_string'
|
2
|
+
|
1
3
|
# Configuration for PE Agent provisioners
|
2
4
|
#
|
3
5
|
# @since 0.13.0
|
@@ -97,7 +99,7 @@ class PEBuild::Config::PEAgent < Vagrant.plugin('2', :config)
|
|
97
99
|
if @version.kind_of? String
|
98
100
|
return if version == 'current'
|
99
101
|
if version.match(pe_version_regex)
|
100
|
-
unless PEBuild::Util::VersionString.compare(@version, MINIMUM_VERSION)
|
102
|
+
unless PEBuild::Util::VersionString.compare(@version, MINIMUM_VERSION) >= 0
|
101
103
|
errors << I18n.t(
|
102
104
|
'pebuild.config.pe_agent.errors.version_too_old',
|
103
105
|
:version => @version,
|
@@ -33,7 +33,7 @@ module PEBuild
|
|
33
33
|
# tuples. This will fail to match anything if config.master_vm is nil.
|
34
34
|
vm_def = machine.env.active_machines.find {|vm| vm[0].to_s == config.master_vm.to_s}
|
35
35
|
if vm_def.nil?
|
36
|
-
|
36
|
+
machine.ui.warn I18n.t(
|
37
37
|
'pebuild.provisioner.pe_agent.skip_purge_no_master',
|
38
38
|
:master => config.master_vm.to_s
|
39
39
|
)
|
data/lib/pe_build/version.rb
CHANGED
@@ -141,7 +141,16 @@ describe PEBuild::Config::PEAgent do
|
|
141
141
|
expect(errors['pe_agent provisioner'].to_s).to match(/The agent version.*is invalid./)
|
142
142
|
end
|
143
143
|
|
144
|
-
it "
|
144
|
+
it "may be greater than or equal to #{PEBuild::Config::PEAgent::MINIMUM_VERSION}" do
|
145
|
+
subject.version = PEBuild::Config::PEAgent::MINIMUM_VERSION
|
146
|
+
|
147
|
+
subject.finalize!
|
148
|
+
errors = subject.validate(machine)
|
149
|
+
|
150
|
+
expect(errors['pe_agent provisioner']).to eq []
|
151
|
+
end
|
152
|
+
|
153
|
+
it "may not be less than #{PEBuild::Config::PEAgent::MINIMUM_VERSION}" do
|
145
154
|
subject.version = '3.8.2'
|
146
155
|
|
147
156
|
subject.finalize!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-pe_build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrien Thebo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: progressbar
|