# File lib/rhc/wizard.rb, line 442 def initialize(config, login=nil) super(config, login) end
# File lib/rhc/wizard.rb, line 464 def create_config_stage if File.exists? @config_path backup = "#{@config_path}.bak" paragraph do say "Configuration file #{@config_path} already exists, " "backing up to #{backup}" end FileUtils.cp(@config_path, backup) FileUtils.rm(@config_path) end super true end
# File lib/rhc/wizard.rb, line 478 def finalize_stage paragraph do say "Thank you for setting up your system. You can rerun this at any time " "by calling 'rhc setup'." end true end
# File lib/rhc/wizard.rb, line 446 def greeting_stage paragraph do say "Starting Interactive Setup for OpenShift's command line interface" end paragraph do say "We'll help get you setup with just a couple of questions. " "You can skip this in the future by copying your config's around:" end paragraph do say " #{@config_path}" say " #{RHC::Config.home_dir}/.ssh/" end true end