Method: Bl::Commands::Space#image
- Defined in:
- lib/bl/commands/space.rb
#image ⇒ Object
24 25 26 27 28 |
# File 'lib/bl/commands/space.rb', line 24 def image body = request(:get, 'space/image').body ::File.open(body.filename, 'wb') { |f| f.write(body.content) } puts "#{body.filename} generated." end |