Permalink
Browse files

Removing more documentation.

  • Loading branch information...
jqr committed Aug 29, 2008
1 parent 94975b2 commit fd5eac2e01b4960466ae1e5558c4dd145949822e
Showing with 0 additions and 9 deletions.
  1. +0 −2 lib/snitch/config.rb
  2. +0 −3 lib/snitch/services/campfire.rb
  3. +0 −1 lib/snitch/services/email.rb
  4. +0 −3 lib/snitch/services/twitter.rb
View
@@ -3,12 +3,10 @@ class Config
@@snitch_config_path = '/home/deploy/.snitch'
class << self
- # Returns the path to the config file.
def config_file_path
@@snitch_config_path
end
- # Allows you to change the config file path.
def config_file_path=(new_path)
@@snitch_config_path = new_path
end
@@ -2,10 +2,8 @@
class Snitch
module Services
- # Allows for using tinder the unnofficial campfire api to paste a commit message into a campfire chatroom.
class Campfire < Service
- # Logs into campfire and enters the room in the config file.
def connection(force=false)
if @campfire.nil? || force
connection = ::Tinder::Campfire.new(subdomain)
@@ -16,7 +14,6 @@ def connection(force=false)
@campfire
end
- # Pastes a given message into a campfire room using the connection method.
def tattle(message)
connection.paste(message)
end
@@ -10,7 +10,6 @@ def initialize(*args)
super(*args)
end
- # Sends the email
def tattle(message)
send_email(create_email(message))
end
@@ -2,20 +2,17 @@
class Snitch
module Services
- # Allows for using the twitter api to post a commit message update.
class Twitter < Service
def initialize(attributes = {})
super({ :message_length => :short }.merge(attributes))
end
- # Logs into twitter.
def connection(force=false)
@twitter = ::Twitter::Base.new(login, password) if @twitter.nil? || force
@twitter
end
- # Posts a given message to twitter using the connection method.
def tattle(message)
connection.update(message)
end

0 comments on commit fd5eac2

Please sign in to comment.