lib/omnibus/cli.rb in omnibus-5.5.0 vs lib/omnibus/cli.rb in omnibus-5.6.0
- old
+ new
@@ -68,19 +68,24 @@
default: true
method_option :use_manifest,
desc: "Use the given manifest when downloading software sources.",
type: :string,
default: nil
+ method_option :populate_s3_cache,
+ desc: "Populate the S3 cache.",
+ type: :boolean,
+ default: false
desc "build PROJECT", "Build the given Omnibus project"
def build(name)
manifest = if @options[:use_manifest]
Omnibus::Manifest.from_file(@options[:use_manifest])
else
nil
end
project = Project.load(name, manifest)
say("Building #{project.name} #{project.build_version}...")
+ Omnibus::S3Cache.populate if @options[:populate_s3_cache] && !Omnibus::S3Cache.fetch_missing.empty?
project.download
project.build
if @options[:output_manifest]
FileUtils.mkdir_p("pkg")