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