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.5.0 bin/rewritten-web.rb
rewritten-0.4.0 bin/rewritten-web.rb
rewritten-0.3.3 bin/rewritten-web.rb
rewritten-0.3.2 bin/rewritten-web.rb
rewritten-0.3.1 bin/rewritten-web.rb
rewritten-0.3.0 bin/rewritten-web.rb
rewritten-0.2.2 bin/rewritten-web.rb
rewritten-0.2.1 bin/rewritten-web.rb
rewritten-0.2.0 bin/rewritten-web.rb
rewritten-0.1.0 bin/rewritten-web.rb
rewritten-0.0.4 bin/rewritten-web.rb
rewritten-0.0.3 bin/rewritten-web.rb
rewritten-0.0.2 bin/rewritten-web.rb
rewritten-0.0.1 bin/rewritten-web.rb