Sha256: 5afd5c2025e03fef1276cd682fe7f872ec3c0014ca8be74ac90404e32d976902
Contents?: true
Size: 810 Bytes
Versions: 5
Compression:
Stored size: 810 Bytes
Contents
#!/usr/bin/env ruby current_path = File.expand_path(File.dirname(__FILE__)) require "#{current_path}/../lib/ginatra" require "#{current_path}/../vendor/vegas/lib/vegas" Vegas::Runner.new(Ginatra::App, 'ginatra-server', :port => Ginatra::Config.port) do |runner, opts, app| opts.banner = "Usage: ginatra-server [[options] start | stop | status]" opts.separator " start - Start the Ginatra HTTP Server" opts.separator " stop - Stop the Ginatra Server" opts.separator " status - How's your Ginatra Server holding up?" if ARGV[-1] == "start" elsif ARGV[-1] == "stop" runner.kill! exit elsif ARGV[-1] == "status" runner.status exit! elsif ARGV.length == 0 || ARGV[-1] !~ /^(start|stop|status)$/ runner.options[:start] = false at_exit { puts opts } end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
lenary-ginatra-2.0.2 | bin/ginatra-server |
ginatra-2.1.1 | bin/ginatra-server |
ginatra-2.1.0 | bin/ginatra-server |
ginatra-2.0.2 | bin/ginatra-server |
ginatra-2.0.1 | bin/ginatra-server |