Sha256: 1d8eefc755ce21bc9901a2d589c4dba3b7c481fdc1cf8a78ef3731b5bb831e75

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

require 'rake'
require 'bloggit'

desc "Runs the (Browser) client"
task :client do
	# This is ugly -- find a better way!
	fork do
    Bloggit::Server.run()
  end
  
  # A pathetic hack to delay for a fraction of second the starting of the browser...
  1000000.times {|i| i.to_s }
  
  begin
	  `open http://127.0.0.1:3322`
  rescue
    # This may fail ???
  end

	Process.wait
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bloggit-1.0.7 lib/bloggit/tasks/client.rb