module CopyTunerClient

def self.cache

def self.cache
  CopyTunerClient.configuration.cache
end

def self.client

def self.client
  CopyTunerClient.configuration.client
end

def self.configure(apply = true)

Other tags:
    Yield: - the configuration to be modified

Parameters:
  • apply (Boolean) -- (internal) whether the configuration should be applied yet.
def self.configure(apply = true)
  self.configuration ||= Configuration.new
  yield configuration
  if apply
    configuration.apply
  end
end

def self.deploy

This is called when the copy_tuner:deploy rake task is invoked.
Issues a new deploy, marking all draft blurbs as published.
def self.deploy
  client.deploy
end

def self.export

This is called when the copy_tuner:export rake task is invoked.
Issues a new export, returning yaml representation of blurb cache.
def self.export
  cache.export
end

def self.flush

Flush queued changed synchronously
def self.flush
  cache.flush
end

def self.start_poller

Starts the polling process.
def self.start_poller
  poller.start
end