Module | VirtP2V::UI::Success |
In: |
lib/virt-p2v/ui/success.rb
lib/virt-p2v/ui/success.rb |
Copyright (C) 2011 Red Hat Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# File lib/virt-p2v/ui/success.rb, line 18 18: def self.init(ui) 19: ui.register_handler('poweroff_button_clicked', 20: method(:poweroff_button_clicked)) 21: 22: @ui = ui 23: end
# File lib/virt-p2v/ui/success.rb, line 18 18: def self.init(ui) 19: ui.register_handler('poweroff_button_clicked', 20: method(:poweroff_button_clicked)) 21: 22: @ui = ui 23: end
# File lib/virt-p2v/ui/success.rb, line 25 25: def self.poweroff_button_clicked 26: @ui.quit 27: end