bento-ya 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c7df09068860beafbda736d12207ae9f616a910
4
- data.tar.gz: 9d33d1c7a4bb8adc7018a01c52c397d1fd059696
3
+ metadata.gz: 9b3dfbe078080f1c1cd6bd1aaf4c8e619b7289eb
4
+ data.tar.gz: 205426adb44f3216a7f4154c1c72ae839dd6dce4
5
5
  SHA512:
6
- metadata.gz: 5b092604f96042e4838a6e5eab4be1eba3582ec46618fce293b425dcfae4901388add6b4e5813b2d26ee7307dda5e275f54753bfb4cd1651bebbd13ac33465fd
7
- data.tar.gz: c7737024c3d963d2017c70ca64fc78f43aa400e6b94554da026e4d857670640164773b99b34de2d2a396596053d3ac3180947741f991124fb5295bf2aa273c2f
6
+ metadata.gz: a61a6893e6c776a58a87f7672638829d36f8b74bfa9af504d992335cbdc8bd2f7a5ee563e3a0166a01bd041567b5222dfcda047452af3fd7d446d3c6cc00a2fc
7
+ data.tar.gz: 6fbf78fa0ac69308480524c64e24d34ece4fd6b16b147f41f0d5cf8fc76057c74722e7a87106faafa4ff80157260a64278d2323722adf0c96b593ce4705ccc07
@@ -1,10 +1,20 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.1.2](https://github.com/cheeseplus/bento-ya/tree/v0.1.2) (2017-07-05)
4
+ [Full Changelog](https://github.com/cheeseplus/bento-ya/compare/v0.1.1...v0.1.2)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Cleanup some requires [\#20](https://github.com/cheeseplus/bento-ya/pull/20) ([cheeseplus](https://github.com/cheeseplus))
9
+ - Testing of shared folder now default, option inverted [\#18](https://github.com/cheeseplus/bento-ya/pull/18) ([cheeseplus](https://github.com/cheeseplus))
10
+ - Fix typo in README.md [\#17](https://github.com/cheeseplus/bento-ya/pull/17) ([ffmike](https://github.com/ffmike))
11
+
3
12
  ## [v0.1.1](https://github.com/cheeseplus/bento-ya/tree/v0.1.1) (2017-07-03)
4
13
  [Full Changelog](https://github.com/cheeseplus/bento-ya/compare/v0.1.0...v0.1.1)
5
14
 
6
15
  **Merged pull requests:**
7
16
 
17
+ - Release 0.1.1 [\#16](https://github.com/cheeseplus/bento-ya/pull/16) ([cheeseplus](https://github.com/cheeseplus))
8
18
  - Need mixlib-shellout [\#15](https://github.com/cheeseplus/bento-ya/pull/15) ([cheeseplus](https://github.com/cheeseplus))
9
19
  - Fix renamed method [\#14](https://github.com/cheeseplus/bento-ya/pull/14) ([cheeseplus](https://github.com/cheeseplus))
10
20
 
data/README.md CHANGED
@@ -51,7 +51,7 @@ To upload built boxes to [Atlas][atlas].
51
51
 
52
52
  #### delete
53
53
 
54
- $ bento revoke debian-8.6 2.3.3
54
+ $ bento delete debian-8.6 2.3.3
55
55
 
56
56
  ## Versioning
57
57
 
@@ -1,11 +1,9 @@
1
- require 'mixlib/shellout'
2
1
  require 'bento/common'
3
2
  require 'bento/buildmetadata'
4
3
  require 'bento/providermetadata'
5
4
  require 'bento/packerexec'
6
5
 
7
6
  class BuildRunner
8
-
9
7
  include Common
10
8
  include PackerExec
11
9
 
@@ -150,8 +150,8 @@ class Options
150
150
  parser: OptionParser.new { |opts|
151
151
  opts.banner = "Usage: #{NAME} test [options]"
152
152
 
153
- opts.on("-f", "--shared-folder", "Enable shared folder") do |opt|
154
- options.shared_folder = opt
153
+ opts.on("--no-shared-folder", "Disable shared folder testing") do |opt|
154
+ options.no_shared = opt
155
155
  end
156
156
 
157
157
  opts.on("-p", "--provisioner PROVISIONER", "Use a specfic provisioner") do |opt|
@@ -1,5 +1,4 @@
1
1
  require 'bento/common'
2
- require 'mixlib/shellout'
3
2
 
4
3
  class NormalizeRunner
5
4
 
@@ -78,4 +77,4 @@ class NormalizeRunner
78
77
  system(*cmd) or raise "[#{template}] Error validating, exited #{$?}"
79
78
  end
80
79
  end
81
- end
80
+ end
@@ -1,5 +1,4 @@
1
1
  require 'bento/common'
2
- require 'kitchen'
3
2
 
4
3
  class TestRunner
5
4
  include Common
@@ -8,7 +7,7 @@ class TestRunner
8
7
 
9
8
  def initialize(opts)
10
9
  @debug = opts.debug
11
- @shared_folder = opts.shared_folder
10
+ @no_shared = opts.no_shared
12
11
  @provisioner = opts.provisioner.nil? ? "shell" : opts.provisioner
13
12
  end
14
13
 
@@ -43,10 +42,10 @@ class TestRunner
43
42
  md = box_metadata(md_json)
44
43
  @boxname = md['name']
45
44
  @providers = md['providers']
46
- @share_disabled = shared_folder ? false : true
45
+ @share_disabled = no_shared || /freebsd/.match(boxname) ? true : false
47
46
 
48
- t_dir = "#{File.expand_path("../../", File.dirname(__FILE__))}/templates"
49
- kitchen_cfg = ERB.new(File.read(t_dir + '/kitchen.yml.erb'), nil, '-').result(binding)
47
+ dir = "#{File.expand_path("../../", File.dirname(__FILE__))}/templates"
48
+ kitchen_cfg = ERB.new(File.read(dir + '/kitchen.yml.erb'), nil, '-').result(binding)
50
49
  File.open(".kitchen.yml", "w") { |f| f.puts kitchen_cfg }
51
50
 
52
51
  kitchen_test = Mixlib::ShellOut.new("kitchen test", :timeout => 900, live_stream: STDOUT)
@@ -1,3 +1,3 @@
1
1
  module Bento
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bento-ya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Thomas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-03 00:00:00.000000000 Z
11
+ date: 2017-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake