fixes #6871 / BZ 1125397 - capsule - add error case for content sync

If the user attempts to sync a lifecyle environment that isn't attached
to the capsule, generate an error to the user.
Fixes #6892 - Turn on IndentationConsistency cop
Merge pull request #4514 from bbuckingham/issue-6871

fixes #6871 / BZ 1125397 - capsule - add error case for content sync
Merge pull request #4518 from daviddavis/temp/20140801163031

Fixes #6892 - Turn on IndentationConsistency cop