Sha256: 6d846bba9209c9a28248038902f714c7cdaca6b7f83a0330f0ddbfaf1597e7dc

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

require 'rake'
require 'ascii_binder_gabriel_rh'

include AsciiBinderGabrielRH::Engine
include AsciiBinderGabrielRH::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
  set_docs_root_dir(git_root_dir)
  set_log_level(:warn)
  build_distro = args[:build_distro] || ''
  generate_docs(:all,build_distro,nil)
end

desc "Package the documentation"
task :package, :package_site do |task,args|
  set_docs_root_dir(git_root_dir)
  set_log_level(:warn)
  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|
  set_docs_root_dir(git_root_dir)
  set_log_level(:warn)
  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

1 entries across 1 versions & 1 rubygems

Version Path
ascii_binder_gabriel_rh-0.0.1 lib/ascii_binder_gabriel_rh/tasks/tasks.rb