Sha256: 2612e9f47a32c81eb8e65dfdca1c436bc87568f8c7faf2fb4aa5097a6a681d66

Contents?: true

Size: 772 Bytes

Versions: 7

Compression:

Stored size: 772 Bytes

Contents

require 'uri'
require 'drb'
require 'json'
require 'tmpdir'
require 'logger'
require 'net/http'
require 'singleton'
require 'lambda_punch/api'
require 'lambda_punch/error'
require 'lambda_punch/logger'
require 'lambda_punch/queue'
require 'lambda_punch/server'
require 'lambda_punch/worker'
require 'lambda_punch/version'
require 'lambda_punch/notifier'
require 'lambda_punch/railtie' if defined?(Rails)

module LambdaPunch
  
  def push(&block)
    Queue.push(block)
  end

  def register!
    Api.register!
  end

  def loop
    Api.loop
  end

  def start_server!
    Server.start!
  end

  def start_worker!
    Worker.start!
  end

  def logger
    @logger ||= Logger.new.logger
  end

  def handled!(context)
    Notifier.handled!(context)
  end

  extend self

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lambda_punch-0.0.8 lib/lambda_punch.rb
lambda_punch-0.0.7 lib/lambda_punch.rb
lambda_punch-0.0.6 lib/lambda_punch.rb
lambda_punch-0.0.5 lib/lambda_punch.rb
lambda_punch-0.0.4 lib/lambda_punch.rb
lambda_punch-0.0.3 lib/lambda_punch.rb
lambda_punch-0.0.2 lib/lambda_punch.rb