Boot up the Vagrant virtual machine:
$ vagrant up
Build a specific recipe with fpm-cookery:
$ RECIPE=<recipe-name> vagrant provision
The final packages will be located here:
Boot up the Vagrant virtual machine:
$ vagrant up
Build a specific recipe with fpm-cookery:
$ RECIPE=<recipe-name> vagrant provision
The final packages will be located here:
| Inspecting 166 files | |
| CCCCCCCCCCCCCCWWCCCCCCCCCCCCCCCCWCCCCCCCCWCCCCCCCCCW.C..C.CCCCC.C..CCC.C.CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWC.WCC..CC.WWCCCCWCCCWCCCCCCCCCWCCCCCCCWWCCC | |
| Offences: | |
| app/controllers/admin/announcements_controller.rb:1:1: C: Missing top-level class documentation comment. | |
| class Admin::AnnouncementsController < ApplicationController | |
| ^^^^^ | |
| app/controllers/admin/announcements_controller.rb:18:29: C: Missing space after #. | |
| redirect_to root_path #announcement_path(@announcement) |
| { | |
| "Statement": [{ | |
| "Effect": "Allow", | |
| "Action" : [ | |
| "ec2:AttachVolume", | |
| "ec2:CreateVolume", | |
| "ec2:DeleteVolume", | |
| "ec2:DescribeVolumes", | |
| "ec2:DetachVolume", |
| $ vagrant plugin list | |
| vagrant-cachier (0.5.0) | |
| vagrant-omnibus (1.1.2) |
| -----> Running serverspec test suite | |
| /opt/chef/embedded/bin/ruby -I/tmp/busser/suites/serverspec -S /opt/chef/embedded/bin/rspec /tmp/busser/suites/serverspec/default_spec.rb --color --format documentation | |
| 1 | |
| skeleton::default | |
| installs sample package (FAILED - 1) | |
| does something (FAILED - 2) | |
| Failures: | |
| 1) skeleton::default installs sample package |
| machine_name=default | |
| machine_id=$(cat ".vagrant/machines/$machine_name/virtualbox/id") | |
| ssh_port=$(VBoxManage showvminfo "$machine_id" --machinereadable | grep ^Forwarding | head -n1 | cut -d, -f4) | |
| echo $ssh_port |
| require "cucumber" | |
| require "aruba/cucumber" | |
| # Add shims to PATH | |
| SHIMS = "#{Dir.pwd}/tmp/aruba/shims" | |
| ENV['PATH'] = "#{SHIMS}:#{ENV['PATH']}" | |
| def generate_shims_for(commands) | |
| FileUtils.mkdir_p(SHIMS) | |
| commands.each do |cmd| |
| [tmp]$ bash | |
| [tmp]$ set -e | |
| [tmp]$ (exit 10) | cat - | |
| [tmp]$ echo $? | |
| 0 | |
| [tmp]$ set -o pipefail | |
| [tmp]$ (exit 10) | cat - | |
| [tmp]$ echo $? | |
| 10 |
| # If you want to provide custom Chef attributes that should not end up in Git | |
| # (e.g. secret tokens), copy `chef.json.example` to `chef.json` and edit the | |
| # latter accordingly (in that case, the example file will be ignored). | |
| # ... | |
| # Configure Chef Solo provisioner | |
| config.vm.provision :chef_solo do |chef| | |
| # Tell Vagrant where the cookbooks are located | |
| chef.cookbooks_path = "vendor/cookbooks" |