mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Merge pull request #1152 from chef/dr/www-task
clean www before releasing
This commit is contained in:
commit
b8e9c82709
1 changed files with 7 additions and 0 deletions
|
@ -46,6 +46,11 @@ namespace :www do
|
|||
desc 'Builds the full site locally'
|
||||
task build: ['www:tutorial', 'www:site', 'www:assemble']
|
||||
|
||||
task :clean do
|
||||
dst = 'www/build'
|
||||
FileUtils.rm_rf(dst) if File.directory?(dst)
|
||||
end
|
||||
|
||||
desc 'Releases the site to gh-pages'
|
||||
task :release do
|
||||
# This folder contains the built files
|
||||
|
@ -110,5 +115,7 @@ namespace :www do
|
|||
end
|
||||
|
||||
task :www do
|
||||
Rake::Task['www:clean'].invoke
|
||||
Rake::Task['www:build'].invoke
|
||||
Rake::Task['www:release'].invoke
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue