vagrant-pe_build 0.8.1 → 0.8.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.
- data/CHANGELOG +13 -0
- data/Gemfile +5 -1
- data/lib/pe_build/action/pe_build_dir.rb +5 -4
- data/lib/pe_build/command/copy.rb +18 -3
- data/lib/pe_build/command/download.rb +3 -28
- data/lib/pe_build/release.rb +1 -1
- data/lib/pe_build/release/2_8.rb +1 -0
- data/lib/pe_build/release/3_1.rb +3 -2
- data/lib/pe_build/version.rb +1 -1
- metadata +3 -2
data/CHANGELOG
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
vagrant-pe_build
|
2
2
|
================
|
3
3
|
|
4
|
+
0.8.2
|
5
|
+
-----
|
6
|
+
|
7
|
+
2013-01-13
|
8
|
+
|
9
|
+
This is a backwards compatible bugfix release.
|
10
|
+
|
11
|
+
* Download and copy commands have been refactored to reduce duplication confusion.
|
12
|
+
* Support for Puppet Enterprise versions 3.1.1 and 2.8.4
|
13
|
+
* Safely access @env[:home_path] in middleware
|
14
|
+
|
15
|
+
Thanks to Gary Larizza for his help in tracking down issues in this release.
|
16
|
+
|
4
17
|
0.8.1
|
5
18
|
-----
|
6
19
|
|
data/Gemfile
CHANGED
@@ -11,5 +11,9 @@ group :development do
|
|
11
11
|
# We depend on Vagrant for development, but we don't add it as a
|
12
12
|
# gem dependency because we expect to be installed within the
|
13
13
|
# Vagrant environment itself using `vagrant plugin`.
|
14
|
-
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git"
|
14
|
+
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => 'v1.4.0'
|
15
|
+
end
|
16
|
+
|
17
|
+
if File.exists? "#{__FILE__}.local"
|
18
|
+
eval(File.read("#{__FILE__}.local"), binding)
|
15
19
|
end
|
@@ -3,15 +3,16 @@ class PEBuild::Action::PEBuildDir
|
|
3
3
|
|
4
4
|
def initialize(app, env)
|
5
5
|
@app, @env = app, env
|
6
|
-
|
7
|
-
@build_dir = @env[:home_path].join('pe_builds')
|
8
6
|
end
|
9
7
|
|
10
8
|
def call(env)
|
11
9
|
@env = env
|
12
10
|
|
13
|
-
|
14
|
-
|
11
|
+
if @env[:home_path]
|
12
|
+
build_dir = @env[:home_path].join('pe_builds')
|
13
|
+
build_dir.mkpath unless build_dir.exist?
|
14
|
+
@env[:pe_build_dir] = build_dir
|
15
|
+
end
|
15
16
|
|
16
17
|
@app.call(@env)
|
17
18
|
end
|
@@ -16,8 +16,7 @@ class PEBuild::Command::Copy < Vagrant.plugin(2, :command)
|
|
16
16
|
archive = PEBuild::Archive.new(filename, @env)
|
17
17
|
archive.version = @options[:version]
|
18
18
|
|
19
|
-
|
20
|
-
archive.fetch(uri)
|
19
|
+
archive.fetch(src_dir)
|
21
20
|
|
22
21
|
@env.ui.info "pe-build: #{archive} has been added and is ready for use!", :prefix => true
|
23
22
|
end
|
@@ -26,12 +25,28 @@ class PEBuild::Command::Copy < Vagrant.plugin(2, :command)
|
|
26
25
|
|
27
26
|
def parser
|
28
27
|
OptionParser.new do |o|
|
29
|
-
o.banner =
|
28
|
+
o.banner = <<-BANNER
|
29
|
+
Usage: vagrant pe-build copy installer-uri
|
30
|
+
|
31
|
+
Examples:
|
32
|
+
|
33
|
+
# Copy a local file
|
34
|
+
vagrant pe-build copy path/to/installer.tar.gz"
|
35
|
+
|
36
|
+
# Download a file via http
|
37
|
+
vagrant pe-build copy http://site-downloads.local/path/to/installer.tar.gz"
|
38
|
+
BANNER
|
39
|
+
|
30
40
|
o.separator ''
|
31
41
|
|
32
42
|
o.on('-v', '--version=val', String, "The version of PE to fetch") do |val|
|
33
43
|
@options[:version] = val
|
34
44
|
end
|
45
|
+
|
46
|
+
o.on('-h', '--help', 'Display this help') do
|
47
|
+
puts o
|
48
|
+
exit(0)
|
49
|
+
end
|
35
50
|
end
|
36
51
|
end
|
37
52
|
end
|
@@ -1,35 +1,10 @@
|
|
1
1
|
require 'pe_build/archive'
|
2
|
+
require 'pe_build/command/copy'
|
2
3
|
|
3
4
|
class PEBuild::Command::Download < Vagrant.plugin(2, :command)
|
4
5
|
|
5
6
|
def execute
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
parser = OptionParser.new do |o|
|
10
|
-
o.banner = "Usage: vagrant pe-build download --version <version> --dir <dir>"
|
11
|
-
o.separator ''
|
12
|
-
|
13
|
-
o.on('-v', '--version=val', String, "The version of PE to fetch") do |val|
|
14
|
-
options[:version] = val
|
15
|
-
end
|
16
|
-
|
17
|
-
o.on('-d', '--dir=val', String, 'The URL basedir containing the file') do |val|
|
18
|
-
options[:dir] = val
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
argv = parse_options(parser)
|
23
|
-
filename = argv.last
|
24
|
-
|
25
|
-
unless options[:version]
|
26
|
-
raise Vagrant::Errors::CLIInvalidUsage, :help => parser.help.chomp
|
27
|
-
end
|
28
|
-
|
29
|
-
uri = URI.parse(options[:dir])
|
30
|
-
|
31
|
-
archive = PEBuild::Archive.new(filename, @env)
|
32
|
-
archive.version = options[:version]
|
33
|
-
archive.fetch(options[:dir])
|
7
|
+
@env.ui.warn "vagrant pe-build download is deprecated, use vagrant pe-build copy", :prefix => true
|
8
|
+
PEBuild::Command::Copy.new(@argv, @env).execute
|
34
9
|
end
|
35
10
|
end
|
data/lib/pe_build/release.rb
CHANGED
data/lib/pe_build/release/2_8.rb
CHANGED
data/lib/pe_build/release/3_1.rb
CHANGED
@@ -2,7 +2,7 @@ require 'pe_build/release'
|
|
2
2
|
|
3
3
|
module PEBuild::Release
|
4
4
|
|
5
|
-
|
5
|
+
three_one_x = newrelease do
|
6
6
|
|
7
7
|
add_release :debian, '6'
|
8
8
|
|
@@ -34,6 +34,7 @@ module PEBuild::Release
|
|
34
34
|
set_answer_file :agent, File.join(PEBuild.template_dir, 'answers', 'agent-3.x.txt.erb')
|
35
35
|
end
|
36
36
|
|
37
|
-
@releases['3.1.0'] =
|
37
|
+
@releases['3.1.0'] = three_one_x
|
38
|
+
@releases['3.1.1'] = three_one_x
|
38
39
|
end
|
39
40
|
|
data/lib/pe_build/version.rb
CHANGED
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.8.
|
4
|
+
version: 0.8.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: progressbar
|
@@ -148,3 +148,4 @@ signing_key:
|
|
148
148
|
specification_version: 3
|
149
149
|
summary: Vagrant provisioner for installing Puppet Enterprise
|
150
150
|
test_files: []
|
151
|
+
has_rdoc:
|