lib/floe.rb in floe-0.8.0 vs lib/floe.rb in floe-0.9.0

- old
+ new

@@ -43,9 +43,29 @@ def self.logger @logger ||= NullLogger.new end + # Set the logger to use + # + # @example + # require "logger" + # Floe.logger = Logger.new($stdout) + # + # @param logger [Logger] logger to use for logging actions def self.logger=(logger) @logger = logger + end + + # Set the runner to use + # + # @example + # Floe.set_runner "docker", kubernetes", {} + # Floe.set_runner "docker", Floe::Workflow::Runner::Kubernetes.new({}) + # + # @param scheme [String] scheme Protocol to register (e.g.: docker) + # @param name_or_instance [String|Floe::Workflow::Runner] Name of runner to use for docker (e.g.: docker) + # @param options [Hash] Options for constructor of the runner (optional) + def self.set_runner(scheme, name_or_instance, options = {}) + Floe::Workflow::Runner.set_runner(scheme, name_or_instance, options) end end