Sha256: 60478d447ee26ad2a205081e2322f344e8bdd1c7923c9c02a59b2e21842b5a0b

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 Bytes

Contents

require "ninja_server/version"
require "ninja_server/tiny_server"

module NinjaServer
  defaultDir = './public' if Dir.exists?('public')
  defaultDir = Dir.pwd unless defaultDir

  s = TinyServer.new(
    ARGV[0] || 1337,
    ARGV[1] || defaultDir
  )

  trap('INT') { s.shutdown }

  s.start
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ninja_server-0.0.1 lib/ninja_server.rb