lib/tasks/projectdx_pipeline.rake in projectdx_pipeline-0.1.0 vs lib/tasks/projectdx_pipeline.rake in projectdx_pipeline-0.2.0
- old
+ new
@@ -1,5 +1,7 @@
+require 'projectdx_pipeline/file'
+require 'projectdx_pipeline/database_configuration_template'
namespace :pipeline do
desc "Run commit stage build and tests"
task :commit => 'commit:default'
namespace :commit do
task :default => %w(configure build test)
@@ -7,12 +9,15 @@
task :build
task :test
namespace :configure do
task :database do
- require 'projectdx_pipeline/database_configuration_template'
dct = ProjectdxPipeline::DatabaseConfigurationTemplate.new('config/database.pipeline.yml')
dct.render_to_file('config/database.yml')
+ end
+
+ task :cms do
+ ProjectdxPipeline::File.copy('config/cms_config.deploy.yml', 'config/cms_config.yml')
end
end
namespace :build do
task :clone_reference_database do