Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.301 kb
def checkpoint(*names, &block)
root = File.join(RubyInstaller::ROOT, 'sandbox', '.checkpoints')
CLEAN.include(root) unless CLEAN.include?(root)
file File.join(root, ".#{names.join('-')}") do |f|
yield if block_given?
mkdir_p root unless File.directory?(root)
touch f.name
end
end
Jump to Line
Something went wrong with that request. Please try again.