lib/kubes_google.rb in kubes_google-0.2.0 vs lib/kubes_google.rb in kubes_google-0.3.0
- old
+ new
@@ -14,9 +14,28 @@
def logger=(v)
@@logger = v
end
+ # Friendlier method configure.
+ #
+ # .kubes/config/env/dev.rb
+ # .kubes/config/plugins/google.rb # also works
+ #
+ # Example:
+ #
+ # KubesGoogle.configure do |config|
+ # config.hooks.gke_whitelist = true
+ # end
+ #
+ def configure(&block)
+ Config.instance.configure(&block)
+ end
+
+ def config
+ Config.instance.config
+ end
+
extend self
end
Kubes::Plugin.register(KubesGoogle)