Created
August 15, 2013 04:10
-
-
Save anonymous/6238199 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Lolcommits | |
class Hookz < Plugin | |
def initialize(runner) | |
super | |
self.name = 'hookz' | |
self.default = true | |
end | |
def run | |
hookfile = File.join self.runner.config.loldir, "Hookfile" | |
if File.exists? hookfile | |
unless File.executable? hookfile | |
puts "==> #{hookfile} is not executable" | |
return | |
end | |
puts "==> Running #{hookfile}" | |
puts `#{hookfile} #{self.runner.main_image}` | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment