lib/dreamback/initializer.rb in dreamback-0.0.3 vs lib/dreamback/initializer.rb in dreamback-0.0.4

- old
+ new

@@ -23,19 +23,21 @@ } @settings = {} # Walks a user through the initial setup process - def self.setup + def self.setup(direct = false) # Check to see if settings exist load_settings(SETTINGS_LOCATION) # Ask user questions if no settings file if @settings.nil? || @settings.empty? create_new_settings save_settings(SETTINGS_LOCATION) else - say(bold("You have already setup Dreamback. Please run \"dreamback backup\" to start a backup.")) + if direct + say(bold("You have already setup Dreamback. Please run \"dreamback backup\" to start a backup.")) + end end # Create ssh keys if they don't exist ssh_keys_exist = File.exists?(File.expand_path("~/.ssh/id_dsa")) create_ssh_keys unless ssh_keys_exist \ No newline at end of file