module HabitatSupervisor

Constants

VERSION

Public Class Methods

client() click to toggle source

API client based on configured options {Configurable}

@return [HabitatSupervisor::Client] API wrapper

# File lib/habitat_supervisor.rb, line 11
def client
  return @client if defined?(@client) && @client.same_options?(options)
  @client = HabitatSupervisor::Client.new(options)
end

Private Class Methods

method_missing(method_name, *args, &block) click to toggle source
Calls superclass method
# File lib/habitat_supervisor.rb, line 22
def method_missing(method_name, *args, &block)
  if client.respond_to?(method_name)
    return client.send(method_name, *args, &block)
  end

  super
end
respond_to_missing?(method_name, include_private=false) click to toggle source
# File lib/habitat_supervisor.rb, line 18
def respond_to_missing?(method_name, include_private=false)
  client.respond_to?(method_name, include_private)
end