Class: ProcfileSplit::Validator
- Inherits:
-
Object
- Object
- ProcfileSplit::Validator
- Defined in:
- lib/procfile_split/validator.rb
Class Method Summary collapse
Class Method Details
.branches_exists?(names) ⇒ Boolean
3 4 5 6 7 8 9 10 |
# File 'lib/procfile_split/validator.rb', line 3 def self.branches_exists?(names) branches = Git.list_branch names.each do |name| if branches.include?(name) raise "abort: branch \"#{name}\" already exist!" end end end |