class GroceryDelivery::Hooks
Hook class for GD
Public Class Methods
atexit(_dryrun, _success, _msg)
click to toggle source
exit hooks.
# File lib/grocery_delivery/hooks.rb, line 40 def self.atexit(_dryrun, _success, _msg); end
get(file)
click to toggle source
# File lib/grocery_delivery/hooks.rb, line 42 def self.get(file) class_eval(File.read(file), file, 1) if File.exist?(file) end
post_repo_up(_dryrun)
click to toggle source
This is code to run after we've updated the repo, but before we've done any work to parse it.
# File lib/grocery_delivery/hooks.rb, line 30 def self.post_repo_up(_dryrun); end
postrun(_dryrun, _success, _msg)
click to toggle source
After we parse the updates to the repo and uploaded/deleted the relevent items from the local server.
# File lib/grocery_delivery/hooks.rb, line 37 def self.postrun(_dryrun, _success, _msg); end
pre_upload(_dryrun, _knife, _local_head)
click to toggle source
This is code to run after right before we start uploads
# File lib/grocery_delivery/hooks.rb, line 33 def self.pre_upload(_dryrun, _knife, _local_head); end
preflight_checks(_dryrun)
click to toggle source
This code will run once we've read our config and loaded our plugins but before anything else. We don't even have a lock yet.
# File lib/grocery_delivery/hooks.rb, line 22 def self.preflight_checks(_dryrun); end
prerun(_dryrun)
click to toggle source
This is run after we've gotten a lock, written a pidfile and initialized our repo object (but not touched the repo yet)
# File lib/grocery_delivery/hooks.rb, line 26 def self.prerun(_dryrun); end