consolidate shebang logic

This commit is contained in:
Brandon Keepers
2014-11-27 12:18:23 -05:00
parent e42ccf0d82
commit fd85f7f112
5 changed files with 69 additions and 45 deletions

View File

@@ -1,10 +0,0 @@
module Linguist
module Strategy
# Check if there's a shebang line and use that as authoritative
class Shebang
def self.call(blob, _)
Language.find_by_shebang(blob.data)
end
end
end
end