-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
executable file
·48 lines (39 loc) · 1.29 KB
/
Rakefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
require "bundler/gem_tasks"
require 'rake/testtask'
require 'yard'
Rake::TestTask.new do |t|
t.libs.push "lib"
t.test_files = FileList['test/**/*_test.rb']
end
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb'] # optional
t.stats_options = ['--list-undoc'] # optional
end
task :acq do
require "graphviz"
require "./lib/museum_provenance.rb"
require "./lib/museum_provenance/utilities/acquisition_method_documentation.rb"
require "fileutils"
FileUtils.mkdir_p("./docs")
MuseumProvenance::Utilities::AcquisitionMethodDocumentation.create_documentation("./docs")
end
task :acq_svg do
require "graphviz"
require "./lib/museum_provenance.rb"
require "./lib/museum_provenance/utilities/acquisition_method_documentation.rb"
require "fileutils"
FileUtils.mkdir_p("./docs")
MuseumProvenance::Utilities::AcquisitionMethodDocumentation.create_documentation("./docs", :svg)
end
task :acq_skos do
require "./lib/museum_provenance.rb"
require "./lib/museum_provenance/utilities/acquisition_method_documentation.rb"
require "fileutils"
FileUtils.mkdir_p("./docs")
MuseumProvenance::Utilities::AcquisitionMethodDocumentation.create_skos("./docs")
end
desc "Clear the screen"
task :cls do
puts "Clearing the Screen \033c"
end
task :default => [:cls, :test, :yard]