Sha256: 7282fd72e55a8a404deef5385b9f701131d6662f29afbb5b54603152be9885f8

Contents?: true

Size: 608 Bytes

Versions: 5

Compression:

Stored size: 608 Bytes

Contents

namespace :heel do

  desc 'start the heel server to view website (not for Windows)'
  task :start do
    sh "heel --root #{SITE.output_dir} --daemonize"
  end
  
  desc 'stop the heel server'
  task :stop do
    sh "heel --kill"
  end

  task :autorun do
    heel_exe = File.join(Gem.bindir, 'heel')
    @heel_spawner = Spawner.new(Spawner.ruby, heel_exe, '--root', SITE.output_dir, :pause => 86_400)
    @heel_spawner.start
  end

  task :autobuild => :autorun do
    at_exit {@heel_spawner.stop if defined? @heel_spawner and not @heel_spawner.nil?}
  end

end

task :autobuild => 'heel:autobuild'

# EOF

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
webby-0.7.0 examples/webby/tasks/heel.rake
webby-0.7.1 examples/webby/tasks/heel.rake
webby-0.7.4 examples/webby/tasks/heel.rake
webby-0.7.3 examples/webby/tasks/heel.rake
webby-0.7.2 examples/webby/tasks/heel.rake