veewee-to-packer 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
data/lib/veewee-to-packer.rb
CHANGED
@@ -33,7 +33,7 @@ module VeeweeToPacker
|
|
33
33
|
|
34
34
|
# Load the definition file and capture its configuration
|
35
35
|
begin
|
36
|
-
load input
|
36
|
+
load File.expand_path(input)
|
37
37
|
rescue LoadError => e
|
38
38
|
raise Error, "Error loading input template: #{e}"
|
39
39
|
end
|
@@ -57,6 +57,15 @@ module VeeweeToPacker
|
|
57
57
|
script_file_src = Pathname.new(File.expand_path(script, input_dir))
|
58
58
|
script_file_dest = scripts_dir.join(script_file_src.basename)
|
59
59
|
|
60
|
+
if !script_file_src.file?
|
61
|
+
raise Error, "File could not be found: #{script_file_src}\n" +
|
62
|
+
"Please make sure the Veewee definition you're converting\n" +
|
63
|
+
"was not copied without its accompanying shell scripts.\n" +
|
64
|
+
"This error is usually caused by copying the definition without\n" +
|
65
|
+
"copying all the required files. Otherwise, this definition is\n" +
|
66
|
+
"broken in Veewee too."
|
67
|
+
end
|
68
|
+
|
60
69
|
FileUtils.cp(script_file_src, script_file_dest)
|
61
70
|
|
62
71
|
"scripts/#{script_file_dest.basename}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veewee-to-packer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
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: 2013-
|
12
|
+
date: 2013-07-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Converts Veewee templates to Packer templates.
|
15
15
|
email:
|