lib/prize/cli.rb in prize-0.1.2 vs lib/prize/cli.rb in prize-0.1.3
- old
+ new
@@ -20,9 +20,12 @@
class_option :replica, type: :boolean, required: false, desc: 'Whether to use readonly replica nodes in Redis Cluster or not'
class_option :cluster, type: :string, required: false, desc: 'List of cluster nodes to contact, format: URL1,URL2,URL3...'
def main
redis = Redis.new(build_options)
Pry.config.prompt = build_prompt(redis)
+ if File.exists?(File.expand_path('~/.prizerc'))
+ Pry.load_file_at_toplevel(File.expand_path('~/.prizerc'))
+ end
Pry.start(redis)
end
no_commands do
def build_options