lib/totrello.rb in totrello-0.0.9 vs lib/totrello.rb in totrello-0.1.0

- old
+ new

@@ -31,14 +31,11 @@ todo = ToDoFind.new todos = todo.search(@directory) puts "Woot! We've got'em" puts 'Generating your board' - begin - board = @trello.find_board(todos[:directory]) - rescue - board =@trello.create_board(todos[:directory], 'Auto Generated by ToTrello Gem') - end + board = @trello.find_board(todos[:directory]) + board ||= @trello.create_board(todos[:directory], 'Auto Generated by ToTrello Gem') puts 'Taking to Trello, this is the longest part...' todos[:todo_list].each do |tdl|