Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianofranz committed Jul 11, 2012
1 parent 3e4224d commit 6aad346
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/rhc-common.rb
Expand Up @@ -868,7 +868,7 @@ def self.snapshot_create(rhc_domain, namespace, app_name, app_uuid, filename, de
end
end
rescue Exception => e
puts e.message
puts e.backtrace if debug
puts "Error in trying to save snapshot. You can try to save manually by running:"
puts
puts ssh_cmd
Expand Down Expand Up @@ -922,11 +922,8 @@ def self.snapshot_restore(rhc_domain, namespace, app_name, app_uuid, filename, d
channel.on_close do |ch|
puts "Terminating..."
end
i = 0
File.open(filename, 'rb') do |file|
while data = file.read(1024)
i = i + 1
puts i
channel.send_data data
end
end
Expand All @@ -936,7 +933,7 @@ def self.snapshot_restore(rhc_domain, namespace, app_name, app_uuid, filename, d
ssh.loop
end
rescue Exception => e
puts e.message if debug
puts e.backtrace if debug
puts "Error in trying to restore snapshot. You can try to restore manually by running:"
puts
puts ssh_cmd
Expand Down

0 comments on commit 6aad346

Please sign in to comment.