Method: Flagit.run

Defined in:
lib/flagit.rb

.run(message, path = '.') ⇒ Object



4
5
6
7
8
9
# File 'lib/flagit.rb', line 4

def self.run(message, path = '.')
  load
  lookout = Flagit::Lookout.new(path)
  redactor = Flagit::Redactor.new(lookout)
  Flagit::Postman.tweet(redactor.write_content(message))
end