added ChownErr and ChmodErr

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
formatting

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
do not re-download job templates during apply

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
do not re-download package blobs during apply

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
formatting

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
clean up all packages before compiling new package

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
do not ignore errors creating/deleting dirs during compilation

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
raise an error if bat ssh output is nil

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
make sure that bundle collection install dir exists before Install moves bundle contents

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Rename should be the last operation of Install

The check whether the job is installed relies on presence of the install directory.
To preserve atomicity Rename should be the last operation that might fail.

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>