examples/simple.rb in unleash-0.1.6 vs examples/simple.rb in unleash-3.2.0
- old
+ new
@@ -14,16 +14,18 @@
# end
# @unleash = Unleash::Client.new
# or:
-@unleash = Unleash::Client.new( url: 'http://unleash.herokuapp.com/api', app_name: 'simple-test',
+@unleash = Unleash::Client.new(
+ url: 'http://unleash.herokuapp.com/api',
+ app_name: 'simple-test',
instance_id: 'local-test-cli',
refresh_interval: 2,
metrics_interval: 2,
retry_limit: 2,
- log_level: Logger::DEBUG,
+ log_level: Logger::DEBUG
)
# feature_name = "AwesomeFeature"
feature_name = "4343443"
unleash_context = Unleash::Context.new
@@ -53,7 +55,5 @@
puts "> shutting down client..."
@unleash.shutdown
puts ">> END simple.rb"
-
-