lib/dock_test/dsl.rb in dock_test-0.1.5 vs lib/dock_test/dsl.rb in dock_test-0.1.6
- old
+ new
@@ -22,9 +22,17 @@
exit
end
end
end
+ # oauth settings
+ attr_accessor :oauth_consumer_key, :oauth_consumer_secret
+
+ # if the current dock_test environment requires oauth
+ def oauth?
+ oauth_consumer_key && oauth_consumer_secret
+ end
+
def port
URI.parse(@url).port
end
def localhost?