module Lolcommits
Cheap monkey patching to not get any output when enabling lolcommits
Constants
- DESCRIPTION
- VERSION
Protected Instance Methods
cleanup!()
click to toggle source
# File lib/lolcommits/runner.rb, line 126 def cleanup! debug 'Runner: running cleanup' # clean up the captured image and any other raw assets FileUtils.rm(snapshot_loc) FileUtils.rm_f(config.video_loc) FileUtils.rm_rf(config.frames_loc) end
resize_snapshot!()
click to toggle source
# File lib/lolcommits/runner.rb, line 109 def resize_snapshot! debug 'Runner: resizing snapshot' image = MiniMagick::Image.open(snapshot_loc) if image[:width] > 720 || image[:height] > 720 # this is ghetto resize-to-fill image.combine_options do |c| c.resize '720x720^' c.gravity 'center' c.extent '720x720' end debug "Runner: writing resized image to #{snapshot_loc}" image.write snapshot_loc end debug "Runner: copying resized image to #{main_image}" FileUtils.cp(snapshot_loc, main_image) end