File: Rakefile

package info (click to toggle)
chake 0.93.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 412 kB
  • sloc: ruby: 1,273; sh: 112; makefile: 5; sed: 3
file content (19 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$LOAD_PATH.unshift '../../lib' # this shouldn't be needed when you have chake installed
require 'chake'

manifest = %w[
  Rakefile
  cookbooks
  cookbooks/example
  cookbooks/example/recipes
  cookbooks/example/recipes/default.rb
  cookbooks/example/files
  cookbooks/example/files/host-homer
  cookbooks/example/files/host-homer/test.asc
  config.rb
]

desc 'removes everything'
task :clean do
  rm_rf Dir.glob('**/*') - manifest
end