Sha256: 903fd176c76e7e60895eeb8bc92400b032f8611cab35cd2d896ddfdc4622a44d

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

module Soca
  class Plugin
    attr_reader :pusher
    attr_accessor :options

    def self.name(plugin_name)
      @@plugins ||= {}
      @@plugins[plugin_name] = self
    end

    def self.plugins
      @@plugins ||= {}
    end

    def initialize(pusher, options = {})
      @pusher = pusher
      @options = options
    end

    def logger
      Soca.logger
    end

    def app_dir
      pusher.app_dir
    end

    def config
      pusher.config
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
soca-0.3.3 lib/soca/plugin.rb
soca-0.3.2 lib/soca/plugin.rb