Sha256: 954b6d16c74315b741dad2a1fe3f51609ac66bdfc8d1a2ca746e268034cc58ac

Contents?: true

Size: 617 Bytes

Versions: 2

Compression:

Stored size: 617 Bytes

Contents

require "berkshelf/vagrant"

unless ARGV[0] == "destroy"
  # use current files, not the released gem from rubygems
  result = `rake build`
  raise "BUILD FAILED: #{result}" unless $?.success?
  package = result[%r{pkg/.*}].sub(/\.$/,"")
end

Vagrant::Config.run do |config|
  config.vm.box = "precise64"
  config.vm.provision :shell, :inline => "gem install /vagrant/#{package} --no-rdoc --no-ri"
  config.vm.provision :chef_solo do |chef|
    #chef.log_level = :debug
    #chef.json = {"minitest" => {"verbose" => true}}
    chef.run_list = [
      "recipe[spec_examples]",
      "minitest-handler",
    ]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minitest-chef-handler-1.0.1 Vagrantfile
minitest-chef-handler-1.0.0 Vagrantfile