Sha256: 2ec38b3ca4bfada5451ea6d04476fb88dc935b9078a271f69ce921c45e329a50

Contents?: true

Size: 840 Bytes

Versions: 10

Compression:

Stored size: 840 Bytes

Contents

require 'rake'
require 'ascii_binder'

include AsciiBinder::Helpers

desc "Build the documentation"
task :build, :build_distro do |task,args|
  # Figure out which distros we are building.
  # A blank value here == all distros
  build_distro = args[:build_distro] || ''
  generate_docs(:all,build_distro,nil)
end

desc "Package the documentation"
task :package, :package_site do |task,args|
  package_site = args[:package_site] || ''
  Rake::Task["clean"].invoke
  Rake::Task["build"].invoke
  package_docs(package_site)
end

desc "Build the documentation and refresh the page"
task :refresh_page, :single_page do |task,args|
  generate_docs(:working_only,'',args[:single_page])
end

desc "Clean all build artifacts"
task :clean do
  sh "rm -rf _preview/* _package/*" do |ok,res|
    if ! ok
      puts "Nothing to clean."
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ascii_binder-0.1.10 lib/ascii_binder/tasks/tasks.rb
ascii_binder-0.1.9 lib/ascii_binder/tasks/tasks.rb
ascii_binder-0.1.8 lib/ascii_binder/tasks/tasks.rb
ascii_binder-0.1.7 lib/ascii_binder/tasks/tasks.rb
ascii_binder-0.1.6 lib/ascii_binder/tasks/tasks.rb
ascii_binder-0.1.5 lib/ascii_binder/tasks/tasks.rb
ascii_binder-0.1.4 lib/ascii_binder/tasks/tasks.rb
ascii_binder-0.1.3.2 lib/ascii_binder/tasks/tasks.rb
ascii_binder-0.1.3.1 lib/ascii_binder/tasks/tasks.rb
ascii_binder-0.1.3 lib/ascii_binder/tasks/tasks.rb