lib/nutrella/task_board_name.rb in nutrella-1.5.0 vs lib/nutrella/task_board_name.rb in nutrella-1.5.1
- old
+ new
@@ -8,14 +8,14 @@
#
# Note: will also accept the name of a branch as an argument.
#
class TaskBoardName
def self.board_name(args)
- git_branch_name, status = Open3.capture2("git rev-parse --abbrev-ref HEAD")
- return git_branch_name.chomp if status.success?
-
git_branch_name = args[0]
return git_branch_name if git_branch_name.present?
+
+ git_branch_name, status = Open3.capture2("git rev-parse --abbrev-ref HEAD")
+ return git_branch_name.chomp if status.success?
abort "Sorry. Can't figure out a name for the board."
end
end
end