Sha256: c96cbba00df39daf72328c8cf4e5074c43a24552cef5c55816c3966268eeb780

Contents?: true

Size: 664 Bytes

Versions: 17

Compression:

Stored size: 664 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} --port #{SITE.heel_port} --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, '--port', SITE.heel_port.to_s, :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

17 entries across 11 versions & 3 rubygems

Version Path
Shazburg-webby-0.9.0 lib/webby/tasks/heel.rake
TwP-webby-0.9.0 lib/webby/tasks/heel.rake
TwP-webby-0.9.1 lib/webby/tasks/heel.rake
TwP-webby-0.9.2 lib/webby/tasks/heel.rake
webby-0.8.3 examples/presentation/tasks/heel.rake
webby-0.8.1 data/tasks/heel.rake
webby-0.8.4 data/tasks/heel.rake
webby-0.8.4 examples/presentation/tasks/heel.rake
webby-0.8.2 examples/webby/tasks/heel.rake
webby-0.8.4 examples/webby/tasks/heel.rake
webby-0.8.2 data/tasks/heel.rake
webby-0.8.3 data/tasks/heel.rake
webby-0.8.1 examples/webby/tasks/heel.rake
webby-0.8.3 examples/webby/tasks/heel.rake
webby-0.9.2 lib/webby/tasks/heel.rake
webby-0.9.0 lib/webby/tasks/heel.rake
webby-0.9.1 lib/webby/tasks/heel.rake