Sha256: 98c98a0f228e952a58c375a8d32c8482fce210b3caf2324c61220f3138f59f39

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'rack'
require 'sinatra'
require 'lib/hydroponics.rb'
require 'optparse'

options = {}

optparse = OptionParser.new do |opts|
  opts.banner = "Usage: hydro [options]..."

  options[:verbose] = false
  opts.on( '-v', '--verbose', 'Output more information' ) do
    options[:verbose] = true
  end
  options[:rails] = false
  opts.on( '-r', '--rails PROJ_DIR', 'Look for a rails project in PROJ_DIR' ) do |dir|
    options[:rails] = dir
  end
end
optparse.parse!

Rack::Handler::Mongrel.run(HydroApp.new(options), :Port => 9294)
puts "Running on port 9294..."

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hydroponics-0.2.2 bin/hydro