# File lib/rhc/commands/snapshot.rb, line 47 def restore(app) rest_app = find_app filename = options.filepath ? options.filepath : "#{rest_app.name}.tar.gz" if File.exists? filename restore_snapshot(rest_app, filename, options.ssh) else raise RHC::SnapshotRestoreException.new "Archive not found: #{filename}" end 0 end