lib/codelation/development/install_methods.rb in codelation-cli-0.0.2 vs lib/codelation/development/install_methods.rb in codelation-cli-0.0.3
- old
+ new
@@ -30,14 +30,14 @@
)
puts "" # Needed to avoid progress bar weirdness
write_downloaded_file(@download_uri)
end
- # Save the file downloaded with #download_file to resources/temp.
+ # Save the file downloaded with #download_file to ~/.codelation/temp.
# @param uri [URI] The URI of the file to be saved
def write_downloaded_file(uri)
file_name = File.basename(uri.path)
- @downloaded_file_path = File.join(Cli.source_root, "temp", file_name)
+ @downloaded_file_path = File.join("~/.codelation", "temp", file_name)
open(@downloaded_file_path, "wb") do |file|
file.write(@download_uri.read)
end
@downloaded_file_path
end