cloudfoundry/bosh — pull request #371 by lukebakken (2013-08-01 14:51:37+00:00)
Title: Use some defaults from ENV

Hello!

I kept running into this issue while trying to build a micro BOSH stemcell:

```
$ bundle exec rake stemcell:micro[/tmp/micro.tgz,vsphere,1,4096]
rake aborted!
key not found: "AWS_ACCESS_KEY_ID_FOR_STEMCELLS_JENKINS_ACCOUNT"
/home/lbakken/src/cf/bosh/bosh-dev/lib/bosh/dev/pipeline.rb:12:in `fetch'
/home/lbakken/src/cf/bosh/bosh-dev/lib/bosh/dev/pipeline.rb:12:in `block in initialize'
/home/lbakken/src/cf/bosh/bosh-dev/lib/bosh/dev/pipeline.rb:9:in `fetch'
/home/lbakken/src/cf/bosh/bosh-dev/lib/bosh/dev/pipeline.rb:9:in `initialize'
/home/lbakken/src/cf/bosh/bosh-dev/lib/bosh/dev/tasks/stemcell.rake:50:in `new'
/home/lbakken/src/cf/bosh/bosh-dev/lib/bosh/dev/tasks/stemcell.rake:50:in `block (2 levels) in '
Tasks: TOP => stemcell:micro
(See full trace by running task with --trace)
```

In the rakefile (`bosh-dev/lib/bosh/dev/tasks/stemcell.rake`), `:tarball` is the first task argument. Using standard task argument passing on the command line, I couldn't figure out a way to *not* pass the `:tarball` argument.

The supplied patch will allow calling this task in this manner to skip the `:tarball` argument:

`bundle exec rake stemcell:micro infrastructure=tier3 version=1 disk_size=4096`

Thanks