Module: ManifestBuilder

Defined in:
lib/conan/manifest_builder.rb

Class Method Summary collapse

Class Method Details

.build(options, artifact_repo = nil, outthingy = nil, &block) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/conan/manifest_builder.rb', line 2

def self.build(options, artifact_repo=nil, outthingy=nil, &block)
  manifest_dir = options[:directory]
  output_type = options[:format]

  artifact_repo ||= DefaultArtifactRepository.new
  outthingy ||= StackatoOutThingy.new(manifest_dir)

  manifest = Manifest.new(options, artifact_repo, outthingy)
  manifest.instance_eval(&block)
  manifest.select(options[:pipeline], options[:environment])
  manifest
end