This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#We have such a Tab, wich has a TargetsTableWidget(A customWidget has a table and buttons), | |
#TargetsTableWidget would be listed after class TargetsTab | |
class TargetsTab < ::CWM::Tab | |
def initialize | |
@target_table_widget = TargetsTableWidget.new | |
self.initial = false | |
end | |
def contents | |
VBox( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
require 'rubygems' | |
require 'fog' | |
%w{OS_PASSWORD OS_USERNAME OS_AUTH_URL}.each do |env| | |
if ENV[env].nil? | |
$stderr.puts "Missing #{env} environment variable." | |
exit 1 | |
end |