class Tukune::Configuration::Default
Public Instance Methods
current_branch()
click to toggle source
# File lib/tukune/configuration/default.rb, line 17 def current_branch `git symbolic-ref --short HEAD`.strip end
feature_branch()
click to toggle source
# File lib/tukune/configuration/default.rb, line 25 def feature_branch feature_branch_prefix + current_branch end
feature_branch_prefix()
click to toggle source
# File lib/tukune/configuration/default.rb, line 21 def feature_branch_prefix 'tukune_' end
pull_request?()
click to toggle source
# File lib/tukune/configuration/default.rb, line 30 def pull_request? false end
repository_name()
click to toggle source
# File lib/tukune/configuration/default.rb, line 8 def repository_name raise 'You need to set TUKUNE_REPONAME in environment variables' unless ENV['TUKUNE_REPONAME'] ENV['TUKUNE_REPONAME'] end
tukune_branch?()
click to toggle source
# File lib/tukune/configuration/default.rb, line 13 def tukune_branch? current_branch.start_with?(feature_branch_prefix) end