File: Rakefile

package info (click to toggle)
kwalify 0.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,860 kB
  • ctags: 1,188
  • sloc: ruby: 8,446; xml: 170; makefile: 37; java: 36
file content (13 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
task :default => 'main'

task 'main' => ['models.rb'] do
  sh "ruby main.rb"
end

file 'models.rb' => ['BABEL.schema.yaml'] do
  sh "kwalify -a genclass-ruby -f BABEL.schema.yaml -tP --hashlike --module=Babel --initialize=false > models.rb"
end

task 'clean' do
  rm_f 'models.rb'
end