berkshelf/berkshelf — pull request #949 by sethvargo (2013-12-09 20:54:05+00:00)
Title: Raise on all commands when install is required but not performed

When running a command that requires a Lockfile to be present and it is not, raise a friendly error requesting the user to perform a `berks install` and to try again.

See #770 for the original discussion

From original issue:

| Command | with .lock | without .lock | Comment |
|--------------|------------|------------------|---------------------------|
| `apply` | Apply | Raise | We can trust the lockfile |
| `contingent` | Contingent | Raise | |
| `cookbook` | N/A | N/A | Does not require lockfile |
| `init` | N/A | N/A | Does not require lockfile |
| `install` | Install | Install | |
| `outdated` | Outdated | Raise | |
| `package` | Package | Raise | |
| `shelf` | N/A | N/A | Does not require lockfile |
| `show` | Show | Raise | |
| `update` | Update | Install | It's okay to install here |
| `upload` | Upload | Raise | |
| `vendor` | Vendor | Raise | |
| `list` | List | Raise | We can trust the lockfile |