Allows bookbinder to support multiple host names.

Signed-off-by: Brenda Chan <brchan@pivotallabs.com>
Modifies unmap_routes to also handle multiple hostnames; creates hosts helper.

Signed-off-by: Brenda Chan <brchan@pivotallabs.com>
Refactors unmap_routes and adds spec to test unmapping.

Signed-off-by: Brenda Chan <brchan@pivotallabs.com>
Modifies #apps to handle inputting multiple hostnames in creds.host. May break Getting apps in org pivotal / space docs-runpivotal-staging as cfaccounts+cfdocs@pivotallabs.com...
OK

name             requested state   instances   memory   disk   urls
docs-blue        stopped           0/2         256M     1G
docs-green       stopped           0/2         256M     1G
docs-pws-blue    stopped           0/2         256M     1G
docs-pws-green   started           2/2         256M     1G     docs-runpivotal-staging.cfapps.io    intended functionality in pusher.rb.

Signed-off-by: Brenda Chan <brchan@pivotallabs.com>
Makes blue-green deploy support multiple hosts.
Refactors Bookbinder spec to avoid RSpec failures on truthy and falsey.

Signed-off-by: Frank Kotsianas <fkotsianas@pivotal.io>
Remove duplicate map_routes method.

Signed-off-by: Frank Kotsianas <fkotsianas@pivotal.io>
Add rake as development dependency.

Signed-off-by: Frank Kotsianas <fkotsianas@pivotal.io>
Add specs for unmap_routes and refactor map_ and unmap_routes spec.

Signed-off-by: Frank Kotsianas <fkotsianas@pivotal.io>
Comment on use of unmap_routes for future.

Signed-off-by: Frank Kotsianas <fkotsianas@pivotal.io>
Make bookbinder ignore routes that are not in the creds repo; refactors #apps and #routes methods.

Signed-off-by: Frank Kotsianas <fkotsianas@pivotallabs.com>
Update commenting about --no-routes.

Signed-off-by: Frank Kotsianas <fkotsianas@pivotallabs.com>
Allow new_route? to not raise in order to return false instead of an exception.

Signed-off-by: Frank Kotsianas <fkotsianas@pivotallabs.com>
Add tests for routes in the creds repo that are not yet mapped in the app.

Signed-off-by: Frank Kotsianas <fkotsianas@pivotallabs.com>
Small readability refactor to tests.

Signed-off-by: Frank Kotsianas <fkotsianas@pivotallabs.com>
Update to RSpec 3 syntax: expect > should, allow > stub, and eq(true) > be_true.
Remove and_call_original to remove  warning.

Signed-off-by: Brenda Chan <brchan@pivotallabs.com>
Configure allow_any_instance_of syntax to return the receiver as first argument to the block -- remove deprecation warnings.

Signed-off-by: Brenda Chan <brchan@pivotallabs.com>
Change pending syntax to RSpec 3 skip syntax.

Signed-off-by: Brenda Chan <brchan@pivotallabs.com>
Fix breaking tests and correct deprecation errors.

Signed-off-by: Brenda Chan <brchan@pivotallabs.com>