lib/physique/solution.rb in physique-0.3.0 vs lib/physique/solution.rb in physique-0.3.1
- old
+ new
@@ -28,12 +28,16 @@
def run_tests
yield @tests
end
def fluently_migrate
- @migrator = FluentMigratorConfig.new
- yield @migrator
+ @dbs_to_migrate = @dbs_to_migrate || []
+
+ migrator = FluentMigratorConfig.new
+ yield migrator
+
+ @dbs_to_migrate << migrator
end
alias_method :database, :fluently_migrate
def octopus_deploy
@@ -50,12 +54,12 @@
Map.new({
file: @file,
nuget: @nuget && @nuget.opts,
compile: @compilation && @compilation.opts,
test: @tests && @tests.opts,
- migrator: @migrator && @migrator.opts,
+ fluent_migrator_dbs: @dbs_to_migrate && @dbs_to_migrate.map {|db| db.opts },
octopus: @octopus && @octopus.opts,
- publish_nugets: @publish_nugets && @publish_nugets.opts,
+ publish_nugets: @publish_nugets && @publish_nugets.opts
})
end
end
class Solution
\ No newline at end of file