Sha256: 3b3f1ca4df878d57b14ae350278a57a02918a7a5c2d0aac0791f69bc087d0a21

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

module Rpush
  def self.push(options = {})
    require 'rpush/daemon'

    config = Rpush::ConfigurationWithoutDefaults.new
    options.each { |k, v| config.send("#{k}=", v) }
    config.push = true
    Rpush.config.update(config)

    Rpush::Daemon.common_init
    Rpush::Daemon::Synchronizer.sync
    Rpush::Daemon::Feeder.start(true) # non-blocking
    Rpush::Daemon::AppRunner.stop
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rpush-2.3.2-java lib/rpush/push.rb
rpush-2.3.2 lib/rpush/push.rb