File: Rakefile

package info (click to toggle)
vagrant-sshfs 1.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 320 kB
  • sloc: ruby: 1,285; sh: 42; makefile: 8
file content (28 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# A Rakefile is like a Makefile for ruby

# bundler/gem_tasks provides functionality like:
#   bundle exec rake build
#   bundle exec rake install
#   bundle exec rake release
#
require 'bundler/gem_tasks'

# rake/clean provides CLEAN/CLOBBER
# http://www.virtuouscode.com/2014/04/28/rake-part-6-clean-and-clobber/
# CLEAN - list to let rake know what files can be cleaned up after build
# CLOBBER - list to let rake know what files are final products of the build
#
require 'rake/clean'


# Add the build dir to the list of items to clean up
CLEAN.include('build')

# We want to keep the build artifacts in the pkg dir
CLOBBER.include('pkg')

# Define a Rake::Task that will do initialization for us
# See http://www.ultrasaurus.com/2009/12/creating-a-custom-rake-task/
task :init do
  FileUtils.mkdir_p 'build'
end