Rakefile in gitdocs-0.5.0.pre7 vs Rakefile in gitdocs-0.5.0
- old
+ new
@@ -24,6 +24,24 @@
t.libs.push('lib')
t.test_files = FileList[File.expand_path('../test/**/*_test.rb', __FILE__)]
t.verbose = true
end
+desc 'Start the web interface for development'
+task server: 'server:start'
+
+namespace :server do
+ task :start do
+ sh('shotgun config.ru')
+ end
+
+ desc 'Copy the current configuration for use with the development web interface'
+ task :copy_config do
+ FileUtils.mkdir_p('./tmp/web')
+ FileUtils.copy(
+ File.expand_path('.gitdocs/config.db', ENV['HOME']),
+ './tmp/web/config.db'
+ )
+ end
+end
+
task default: 'test:integration'