lib/cide/builder.rb in cide-0.9.1 vs lib/cide/builder.rb in cide-0.9.2
- old
+ new
@@ -12,15 +12,15 @@
@config = config
@tmp_files = []
end
def build(tag: nil, pull: nil, ssh_key: nil)
- fail ArgumentError, 'tag missing' unless tag
+ raise ArgumentError, 'tag missing' unless tag
if config.use_ssh
- fail ArgumentError, 'ssh_key missing' unless ssh_key
+ raise ArgumentError, 'ssh_key missing' unless ssh_key
unless File.exist?(ssh_key)
- fail ArgumentError, "ssh_key #{ssh_key} not found"
+ raise ArgumentError, "ssh_key #{ssh_key} not found"
end
create_tmp_file! TEMP_SSH_KEY, File.read(ssh_key)
end
create_tmp_file! DOCKERFILE, config.to_dockerfile