Skip to content

Commit a5c8449

Browse files
rmorizdefunkt
authored andcommitted
Feature: specify a Redis namespace via command line option to resque-web/vegas
1 parent 13df2e2 commit a5c8449

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bin/resque-web

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ Vegas::Runner.new(Resque::Server, 'resque-web', {
1515
path = (ENV['RESQUECONFIG'] || v.args.first)
1616
load path.to_s.strip if path
1717
}
18-
})
18+
}) do |runner, opts, app|
19+
opts.on('-N NAMESPACE', "--namespace NAMESPACE", "set the Redis namespace") {|namespace|
20+
runner.logger.info "Using Redis namespace '#{namespace}'"
21+
Resque.redis.namespace = namespace
22+
}
23+
end

0 commit comments

Comments
 (0)