lib/app_builder/uploader.rb in app_builder-0.1.4 vs lib/app_builder/uploader.rb in app_builder-0.1.5
- old
+ new
@@ -22,12 +22,14 @@
end
def upload
upload_proc = s3? ? method(:upload_to_s3) : method(:upload_to_server)
builder.build
- upload_proc.call(builded_src_path, remote_src_file)
- generate_manifest
- upload_proc.call(builded_manifest_path, remote_manifest_file)
+ execute_with_hooks(:upload) do
+ upload_proc.call(builded_src_path, remote_src_file)
+ generate_manifest
+ upload_proc.call(builded_manifest_path, remote_manifest_file)
+ end
end
def upload_to_s3(local, remote)
log(:info, "Upload #{local} to #{src_url}")
s3_client.put_object(