forked from thbishop/fission
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove ensure_vm_exists command helper as it's no longer needed
- Loading branch information
Showing
2 changed files
with
0 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
module Fission | ||
module CommandHelpers | ||
|
||
# Public: Checks for the existence of a VM. | ||
# | ||
# vm - Fission VM object to look for. | ||
# | ||
# Examples | ||
# | ||
# ensure_vm_exists 'foo' | ||
# | ||
# Returns nothing. | ||
# If the VM does not exist, then an error will be output and it will exit | ||
# with an exit code of 1. | ||
# If the VM exists, nothing will be output. | ||
def ensure_vm_exists(vm) | ||
unless vm.exists? | ||
output_and_exit "Unable to find the VM '#{vm.name}' (#{VM.path(vm.name)})", 1 | ||
end | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters