Sha256: 13789f3e234abd26fa279e775bf5f676d6b3a543b0b091339ee73672a673a79f

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 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::AppRunner.sync
    Rpush::Daemon::Feeder.start
    Rpush::Daemon::AppRunner.stop
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rpush-2.0.0.beta1 lib/rpush/push.rb