Fix for copying built Github pages to the submodule properly

This commit is contained in:
Davis W. Frank
2012-04-02 18:33:38 -07:00
parent 06f1edc197
commit d63836afb4
2 changed files with 27 additions and 1 deletions

View File

@@ -14,5 +14,18 @@ class JasmineDev < Thor
inside File.join('pages', 'pages_source') do
run_with_output "frank export #{pages_output}", :capture => true
end
pages_files = Dir.chdir(pages_output) { Dir.glob('*') }
pages_files.each do |file|
source_path = File.join(pages_output, file)
destination_path = File.join(pages_dir, file)
if File.directory?(source_path)
directory source_path, destination_path
else
copy_file source_path, destination_path
end
end
end
end