Class: Physique::SolutionConfig

Inherits:
Object
  • Object
show all
Extended by:
Albacore::ConfigDSL
Includes:
Albacore::Logging
Defined in:
lib/physique/solution.rb

Instance Method Summary collapse

Constructor Details

#initializeSolutionConfig



13
14
15
16
17
18
# File 'lib/physique/solution.rb', line 13

def initialize
  @file = nil
  @compilation = CompileConfig.new
  @nuget = NugetConfig.new
  @tests = TestConfig.new
end

Instance Method Details

#compile {|@compilation| ... } ⇒ Object

Yields:

  • (@compilation)


24
25
26
# File 'lib/physique/solution.rb', line 24

def compile
  yield @compilation
end

#fluently_migrate {|@migrator| ... } ⇒ Object Also known as: database

Yields:

  • (@migrator)


32
33
34
35
# File 'lib/physique/solution.rb', line 32

def fluently_migrate
  @migrator = FluentMigratorConfig.new
  yield @migrator
end

#octopus_deploy {|@octopus| ... } ⇒ Object

Yields:

  • (@octopus)


39
40
41
42
# File 'lib/physique/solution.rb', line 39

def octopus_deploy
  @octopus = OctopusDeployConfig.new
  yield @octopus
end

#optsObject



49
50
51
52
53
54
55
56
57
58
59
# File 'lib/physique/solution.rb', line 49

def opts
  Map.new({
    file: @file,
    nuget: @nuget && @nuget.opts,
    compile: @compilation && @compilation.opts,
    test: @tests && @tests.opts,
    migrator: @migrator && @migrator.opts,
    octopus: @octopus && @octopus.opts,
    publish_nugets: @publish_nugets && @publish_nugets.opts,
  })
end

#publish_nugets {|@publish_nugets| ... } ⇒ Object

Yields:



44
45
46
47
# File 'lib/physique/solution.rb', line 44

def publish_nugets
  @publish_nugets = PublishNugetsConfig.new
  yield @publish_nugets
end

#run_tests {|@tests| ... } ⇒ Object

Yields:

  • (@tests)


28
29
30
# File 'lib/physique/solution.rb', line 28

def run_tests
  yield @tests
end

#use_nuget {|@nuget| ... } ⇒ Object

Yields:

  • (@nuget)


20
21
22
# File 'lib/physique/solution.rb', line 20

def use_nuget
  yield @nuget
end