lib/dev_flow/commands/init.rb in dev_flow-0.1.0 vs lib/dev_flow/commands/init.rb in dev_flow-0.1.1

- old
+ new

@@ -32,11 +32,11 @@ print msg + ":" ans = STDIN.gets.chomp! ans = sugguest unless ans.size > 0 error "Unknown member! Can not continue." unless all_member_names.include? ans - error "You are not in the team, you should not edit the files under this project" unless @roadmap.team_member_names.include? ans + error "You are not in the team, you should not edit the files under this project." unless @roadmap.team_member_names.include? ans # find the default git remote server @config["whoami"] = ans info "Welcome #{self.user_name.bold}!" @@ -50,10 +50,10 @@ msg += " [#{suggest}]" if remotes.include? suggest print msg + ":" ans2 = STDIN.gets.chomp! ans2 = suggest unless ans2.size > 0 - error "You must define a valid git remote server" unless remotes.include? ans2 + error "You must define a valid git remote server." unless remotes.include? ans2 # write out to the local configuration file info "write contents to local configuration file" write_local_config(local_configuration.merge({"whoami" => ans, "git_remote" => ans2})) add_to_gitignore()