Sha256: 4ab5bcb1be13028411960b862f0b563132e28af610fc9736f51a7efe46438ec1

Contents?: true

Size: 382 Bytes

Versions: 7

Compression:

Stored size: 382 Bytes

Contents

module Rpush
  def self.push(options = {})
    Rpush.require_for_daemon

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

    Rpush::Daemon.initialize_store
    Rpush::Daemon::Synchronizer.sync
    Rpush::Daemon::Feeder.start
    Rpush::Daemon::AppRunner.stop
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rpush-2.0.1-java lib/rpush/push.rb
rpush-2.0.1 lib/rpush/push.rb
rpush-2.0.0-java lib/rpush/push.rb
rpush-2.0.0 lib/rpush/push.rb
rpush-2.0.0.rc1-java lib/rpush/push.rb
rpush-2.0.0.rc1 lib/rpush/push.rb
rpush-2.0.0.beta2 lib/rpush/push.rb