Update start.rb

add support for a different USER
This commit is contained in:
Robert Kiel
2016-05-04 10:28:36 -04:00
parent b2e681f7b3
commit 58ff81d0ed

View File

@@ -15,7 +15,7 @@ module Feature
subcommand, *feature_words = *argv subcommand, *feature_words = *argv
feature_name = feature_words.join('-') feature_name = feature_words.join('-')
feature_branch = "#{ENV['USER']}-#{current_branch}-#{feature_name}" feature_branch = "#{ENV['FEATURE_USER']||ENV['USER']}-#{current_branch}-#{feature_name}"
error "invalid base branch: #{current_branch}" unless standard_branches.include? current_branch error "invalid base branch: #{current_branch}" unless standard_branches.include? current_branch
error "invalid feature branch: #{feature_name}" if standard_branches.include? feature_name error "invalid feature branch: #{feature_name}" if standard_branches.include? feature_name