Sha256: 41901a271aed3dc23e47b52d06b5a7814f7fa4cc403053af1c3a77696607013c

Contents?: true

Size: 610 Bytes

Versions: 34

Compression:

Stored size: 610 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
begin
  require 'vegas'
rescue LoadError
  require 'rubygems'
  require 'vegas'
end  

require 'rewritten/server'

Vegas::Runner.new(Rewritten::Server, 'rewritten-web', {
  :before_run => lambda {|v|
    path = (ENV['RESQUECONFIG'] || v.args.first)
    load path.to_s.strip if path
  }
}) do |runner, opts, app|
  opts.on('-N NAMESPACE', "--namespace NAMESPACE", "set the Redis namespace") {|namespace|
    runner.logger.info "Using Redis namespace '#{namespace}'"
    Rewritten.redis.namespace = namespace
  }
end


Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
rewritten-0.15.2 bin/rewritten-web.rb
rewritten-0.15.1 bin/rewritten-web.rb
rewritten-0.15.0 bin/rewritten-web.rb
rewritten-0.14.2 bin/rewritten-web.rb
rewritten-0.14.1 bin/rewritten-web.rb
rewritten-0.14.0 bin/rewritten-web.rb
rewritten-0.13.1 bin/rewritten-web.rb
rewritten-0.13.0 bin/rewritten-web.rb
rewritten-0.12.1 bin/rewritten-web.rb
rewritten-0.12.0 bin/rewritten-web.rb
rewritten-0.11.1 bin/rewritten-web.rb
rewritten-0.11.0 bin/rewritten-web.rb
rewritten-0.10.0 bin/rewritten-web.rb
rewritten-0.9.1 bin/rewritten-web.rb
rewritten-0.9.0 bin/rewritten-web.rb
rewritten-0.8.2 bin/rewritten-web.rb
rewritten-0.8.1 bin/rewritten-web.rb
rewritten-0.8.0 bin/rewritten-web.rb
rewritten-0.7.0 bin/rewritten-web.rb
rewritten-0.6.0 bin/rewritten-web.rb