Bump fakefs

Fakefs compatible with ruby 2.1.1 is not released yet, so
we are using the gem from source at github.

- Switch to StringIO instead of /dev/null for Logger in specs, as this
  conflicts with new Fakefs expecting /dev/null to exist
- Test changing directories to be independent of current spec directory
- Fix Fakefs expand path issue:
  In new Fakefs path and expanded path are not the same

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Remove $SAFE level for ERB parsing

$SAFE=4 level was removed from ruby 2.1.1. In general, this SAFE level
does not provide enough security.

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Update shell_spec const stubbing
Use temp directory in errands controller spec

Some environments resolve paths differently; make sure that director
has access to base_dir as configured.

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Add ruby-2.1.1 to travis integration build

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Increase timeout for agent start in tests

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Add GOROOT to travis:go_install

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Download test artifacts in WORKSPACE if set

/tmp is not always large enough on some environments
Remove kernel version from grub.conf test

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Add latest trusty OS image to doc

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Adding final release for build 2606
Merge final release for build 2606 to develop
Update stemcell:upload_os_image

Add requirement/ability to pass in the S3 key on the command line.
Remove Bosh::Stemcell:OsImageUploader as it is no longer necessary.

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Add ci:publish_os_image_in_vm rake task

Also includes a refactor of StemcellVm.

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Use bash for stemcell VM commands so we can use pushd

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Use Tempfile instead of Dir.mktmpdir

It seems that our tempdir disappeared before we could use it. Using a file in
TMPDIR instead means we shouldn't have to worry about that.

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Remove unused require from spec

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Read OS image tempfile path before unlinking

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Merge commit '563180a3cee2ef688e779db2173cda86021ce642' into aws-spot_fail_faster_for_expected_error_conditions

* commit '563180a3cee2ef688e779db2173cda86021ce642':
  Read OS image tempfile path before unlinking
  Remove unused require from spec
  Use Tempfile instead of Dir.mktmpdir
  Use bash for stemcell VM commands so we can use pushd
  Add ci:publish_os_image_in_vm rake task
  Update stemcell:upload_os_image
  Adding final release for build 2606
  Add latest trusty OS image to doc
  Remove kernel version from grub.conf test
  Download test artifacts in WORKSPACE if set
  Add GOROOT to travis:go_install
  Increase timeout for agent start in tests
  Add ruby-2.1.1 to travis integration build
  Use temp directory in errands controller spec
  Update shell_spec const stubbing
  Remove $SAFE level for ERB parsing
  Bump fakefs