boxes 2.0.0 → 2.0.1

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: 61968a830b3bc14160ec9f1da648d4d25692e4de
4
- data.tar.gz: 9488c5e6f4b90c8f8cbdc163b919cfecfca86a05
3
+ metadata.gz: 21f9035ac63ddde3b0f4047daea626938707f069
4
+ data.tar.gz: eb5627ca8691516ac99e75bfefeff349dbea3621
5
5
  SHA512:
6
- metadata.gz: 9055590e48fa44358ecf33105e2329b29383c6ea1dbf2612d1eb8630abcb2c320578d53af38ca32c6cbdf97a3924389fe50bc4be43a08aaeea2f7e9320d44e0a
7
- data.tar.gz: a29840bdc11b837c7d53e50c072b8ab28d0a855a54e407c827044a394df078d84f89cbe9774fc6b439e9d5cc37fff129104d3aca028e4cb994fa4e671899129d
6
+ metadata.gz: fa21b325ea2836d338f2726e8f9ce58d74ece10d782a23e28bafde222b5778cd11f47339d644de4b5e5183940fe7c19541c60d3b093b41674964af2a401e51dd
7
+ data.tar.gz: c3acba77025458ccbeaaddc9ea5a33f5eff8663cf1c0da8171cb7a67b5c34a5d51db0a364f3ea7d2a8e845b7013b75f813ede24467c045d47b5be51751bdd158
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.2
@@ -1,5 +1,12 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.0.1 (18/10/2015)
4
+
5
+ * Fixes a launch exception relating to configuration.
6
+ * Adds support for Travis CI.
7
+ * Correctly sets configured environment variables should be set before running.
8
+ * Does a better job of handling errors when running builds.
9
+
3
10
  ## 2.0.0 (10/10/2015)
4
11
 
5
12
  * Conversion to being a command line tool distributed through Ruby Gems.
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency 'bundler', '~> 1.9'
33
33
  spec.add_development_dependency 'rake', '~> 10.4'
34
34
  spec.add_development_dependency 'rspec', '~> 3.3'
35
- spec.add_development_dependency 'cucumber', '~> 1.3'
35
+ spec.add_development_dependency 'cucumber', '~> 2.1'
36
36
  spec.add_development_dependency 'aruba', '~> 0.8'
37
37
  spec.add_development_dependency 'fakefs', '~> 0.6'
38
38
  spec.add_development_dependency 'pry'
@@ -1,3 +1,4 @@
1
+ require 'set'
1
2
  require 'fileutils'
2
3
  require 'pathname'
3
4
  require 'yaml'
@@ -41,6 +41,13 @@ module Boxes
41
41
  f.puts rendered_template
42
42
  end
43
43
 
44
+ # set the environment vars
45
+ Boxes.config.environment_vars.each do |e|
46
+ e.each do |k, v|
47
+ ENV[k] = v.to_s
48
+ end
49
+ end
50
+
44
51
  # execute the packer command
45
52
  FileUtils.chdir(Boxes.config.working_dir)
46
53
  cmd = "packer build #{build_name}.json"
@@ -39,6 +39,9 @@ module Boxes
39
39
  builder = Boxes::Builder.new(env, @build)
40
40
  builder.run
41
41
  builder.clean
42
+ rescue Boxes::Errors::BuildRunError => e
43
+ puts "[!] #{e}".red
44
+ exit 1
42
45
  end
43
46
  end
44
47
  end
@@ -1,4 +1,4 @@
1
1
  # Versions and other declarations.
2
2
  module Boxes
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxes
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Charlton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-10 00:00:00.000000000 Z
11
+ date: 2015-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.3'
89
+ version: '2.1'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.3'
96
+ version: '2.1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: aruba
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -151,6 +151,7 @@ extra_rdoc_files: []
151
151
  files:
152
152
  - ".gitignore"
153
153
  - ".ruby-version"
154
+ - ".travis.yml"
154
155
  - CHANGELOG.md
155
156
  - Gemfile
156
157
  - LICENSE