Permalink
Browse files

Create default config files with rake config_prepare

  • Loading branch information...
ebeigarts committed Oct 11, 2012
1 parent 006f242 commit 364c97557a71d926c8db7cd8e4c71f1b08792032
Showing with 15 additions and 6 deletions.
  1. +10 −1 Rakefile
  2. +3 −3 spec/config.yml.example
  3. +2 −2 spec/fixtures/get_user_availability.yml.example
View
@@ -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
View
@@ -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
@@ -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.