Skip to content

Commit

Permalink
var inconsistence and better usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jnak committed Feb 21, 2012
1 parent b4aac05 commit cc9496d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions bin/apnmachined
Expand Up @@ -7,12 +7,14 @@ require 'apnmachine'
require 'apnmachine/server'

def usage
puts "Usage: apnmchined [switches] --pem <path>"
puts "Usage: apnmchined [switches] --pem path/to/pem"
puts " --pem-passphrase path/to/pem path to pem passphrase"
puts " --redis-host [127.0.0.1] bind address of proxy"
puts " --redis-port [6379] port proxy listens on"
puts " --server <gateway.push.apple.com> the apn server to send messages to"
puts " --log </var/log/apnmachined.log the path to store the log"
puts " --daemon to daemonize the server"
puts " --redis-port [6379] port proxy listens on"
puts " --log </var/log/apnmachined.log the path to store the log"
puts " --daemon to daemonize the server (include full path for pem files then)"
puts " --apn-host <gateway.push.apple.com> the apn server host (use 'sandbox' to use apple sandboxes)"
puts " --apn-port <gateway.push.apple.com> the apn server port "
puts " --help this message"
end

Expand Down
2 changes: 1 addition & 1 deletion lib/apnmachine/server/client.rb
Expand Up @@ -19,7 +19,7 @@ def disconnect!
end

def write(notif_bin)
Config.logger.debug "#{Time.now} [#{host}:#{port}] New notif"
Config.logger.debug "#{Time.now} New notif"
@connection.send_data(notif_bin)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/apnmachine/version.rb
@@ -1,3 +1,3 @@
module ApnMachine
VERSION = "0.1.1"
VERSION = "0.1.3"
end

0 comments on commit cc9496d

Please sign in to comment.