Permalink
Browse files

store passwords locally in a passwords.yml file that's excluded from git

  • Loading branch information...
1 parent 2da693b commit e505e275c2e8004039cefb0172f9721b85561b0b @jnewland committed Jul 8, 2008
Showing with 8 additions and 4 deletions.
  1. +1 −2 .gitignore
  2. +5 −2 jabber.god.example → jabber_contacts.god
  3. +2 −0 lib/passwords.rb
View
@@ -1,2 +1 @@
-jabber.god
-email.god
+passwords.yml
@@ -1,7 +1,10 @@
-require File.dirname(__FILE__) + '/lib/jabber.rb'
+$: << File.expand_path(File.dirname(__FILE__) + "/lib")
+require 'passwords'
+require 'jabber'
+
God::Contacts::Jabber.settings = { :jabber_id => 'bot@jnewland.com',
- :password => '' }
+ :password => '5638D0' }
God.contact(:jabber) do |c|
c.name = 'jesse'
c.jabber_id = 'jnewland@gmail.com'
View
@@ -0,0 +1,2 @@
+require 'yaml'
+PASSWORDS = YAML.load(File.read(File.dirname(__FILE__) + '/../passwords.yml'))

0 comments on commit e505e27

Please sign in to comment.