Method: Commands::GetFile#download
- Defined in:
- lib/gdsh/get_file.rb
#download(url) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/gdsh/get_file.rb', line 32 def download(url) return unless @client (url) result = @client.execute(uri: url) if result.status == 200 result.body else puts drive_error_string end end |