Skip to content

Commit

Permalink
load username/pw from config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Tin committed Jan 15, 2013
1 parent d2f373b commit 4273c7f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/update.yml
/process.yml
4 changes: 4 additions & 0 deletions process_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
username: 'my_username'
password: 'my_password'
server_id: 1234
9 changes: 6 additions & 3 deletions update
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
require 'rubygems'
require 'savon'

USERNAME = 'emil.tin@tmf.kk.dk/6d3cb6b9-36c9-3337-b235-7f942744edcc'
PASSWORD = '3djvxGE3xsd23a'
SERVER_ID = 5373
config = YAML.load_file('config.yml')

USERNAME = config['username']
PASSWORD = config['password']
SERVER_ID = config['server_id']

SERVER_USER = 'osm'
SERVER_DOMAIN = 'tech.ibikecph.dk'
SERVER_ROOT = '/home/osm'
Expand Down

0 comments on commit 4273c7f

Please sign in to comment.