lib/cide/runner.rb in cide-0.9.1 vs lib/cide/runner.rb in cide-0.9.2
- old
+ new
@@ -11,11 +11,11 @@
env: {},
links: [],
tag: nil,
user: nil
)
- fail ArgumentError, 'tag missing' unless tag
+ raise ArgumentError, 'tag missing' unless tag
@containers = []
@id = SecureRandom.hex
@tag = tag
@@ -52,11 +52,11 @@
@containers << id
docker(:attach, id)
end
def export!(guest_dir: nil, host_dir: nil)
- fail ArgumentError, 'guest export_dir missing' unless guest_dir
- fail ArgumentError, 'host export_dir missing' unless host_dir
+ raise ArgumentError, 'guest export_dir missing' unless guest_dir
+ raise ArgumentError, 'host export_dir missing' unless host_dir
# FIXME: strip trailing slashes ?
guest_dir = File.expand_path(guest_dir, CIDE_SRC_DIR)
host_dir = File.expand_path(host_dir, Dir.pwd)