# File lib/rhc/wizard.rb, line 28 def initialize(config, opts=nil) @config = config @config_path = config.config_path if @libra_server.nil? @libra_server = config['libra_server'] # if not set, set to default @libra_server = @libra_server ? @libra_server : "openshift.redhat.com" end @config.config_user opts.rhlogin if opts && opts.rhlogin @debug = opts.debug if opts end
Public: Runs the setup wizard to make sure ~/.openshift and ~/.ssh are correct
Examples
wizard.run() # => true
Returns nil on failure or true on success
# File lib/rhc/wizard.rb, line 48 def run stages.each do |stage| # FIXME: cleanup if we fail debug "Running #{stage}" if (self.send stage).nil? return nil end end true end
# File lib/rhc/wizard.rb, line 24 def stages STAGES end