Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create default config files with rake config_prepare
  • Loading branch information
ebeigarts committed Oct 11, 2012
1 parent 006f242 commit 364c975
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
11 changes: 10 additions & 1 deletion Rakefile
Expand Up @@ -12,4 +12,13 @@ YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'README.md']
end

task :default => :spec
task :default => [:prepare_config, :spec]

task :prepare_config do
unless File.exists? "spec/config.yml"
cp "spec/config.yml.example", "spec/config.yml"
end
unless File.exists? "spec/fixtures/get_user_availability.yml"
cp "spec/fixtures/get_user_availability.yml.example", "spec/fixtures/get_user_availability.yml"
end
end
6 changes: 3 additions & 3 deletions spec/config.yml.example
@@ -1,4 +1,4 @@
endpoint: https://domain.com/EWS/Exchange.asmx
username: username
password: password
endpoint: https://amsprd0710.outlook.com/EWS/Exchange.asmx
username: ebeigarts@ebeigarts.onmicrosoft.com
password: hidden
debug: true
4 changes: 2 additions & 2 deletions spec/fixtures/get_user_availability.yml.example
@@ -1,4 +1,4 @@
email_address: test.test@test.com
email_address: ebeigarts@ebeigarts.onmicrosoft.com
time_zone: EET
start_time: '2016-01-01 00:00:01'
end_time: '2016-01-31 23:59:59'
end_time: '2016-01-31 23:59:59'

0 comments on commit 364c975

Please sign in to comment.