lib/tasks/compose.rake in picsolve_docker_builder-0.5.1 vs lib/tasks/compose.rake in picsolve_docker_builder-0.5.2

- old
+ new

@@ -28,6 +28,14 @@ desc 'Update version of container' task :update do require 'picsolve_docker_builder/helpers/config_version_update' PicsolveDockerBuilder::Helpers::ConfigVersionUpdate.update_task end + + desc 'Cleanup databases/replication_controllers' + task :cleanup do + @docker_compose ||= PicsolveDockerBuilder::Composer::Composer.new + stage = ENV['STAGE'] || 'CI' + @docker_compose.stage = stage + @docker_compose.cleanup + end end