class Physique::SolutionConfig

Public Class Methods

new() click to toggle source
# File lib/physique/solution.rb, line 13
def initialize
  @file = nil
  @compilation = CompileConfig.new
  @nuget = NugetConfig.new
  @tests = TestConfig.new
end

Public Instance Methods

compile() { |compilation| ... } click to toggle source
# File lib/physique/solution.rb, line 24
def compile
  yield @compilation
end
database()
Alias for: fluently_migrate
fluently_migrate() { |migrator| ... } click to toggle source
# File lib/physique/solution.rb, line 32
def fluently_migrate
  @dbs_to_migrate = @dbs_to_migrate || []

  migrator = FluentMigratorConfig.new
  yield migrator

  @dbs_to_migrate << migrator
end
Also aliased as: database
octopus_deploy() { |octopus| ... } click to toggle source
# File lib/physique/solution.rb, line 43
def octopus_deploy
  @octopus = OctopusDeployConfig.new
  yield @octopus
end
opts() click to toggle source
# File lib/physique/solution.rb, line 53
def opts
  Map.new({
    file: @file,
    nuget: @nuget && @nuget.opts,
    compile: @compilation && @compilation.opts,
    test: @tests && @tests.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
  })
end
publish_nugets() { |publish_nugets| ... } click to toggle source
# File lib/physique/solution.rb, line 48
def publish_nugets
  @publish_nugets = PublishNugetsConfig.new
  yield @publish_nugets
end
run_tests() { |tests| ... } click to toggle source
# File lib/physique/solution.rb, line 28
def run_tests
  yield @tests
end
use_nuget() { |nuget| ... } click to toggle source
# File lib/physique/solution.rb, line 20
def use_nuget
  yield @nuget
end