Class: XCCache::Installer::Build

Inherits:
XCCache::Installer show all
Defined in:
lib/xccache/installer/build.rb

Instance Method Summary collapse

Methods inherited from XCCache::Installer

#lockfile, #perform_install, #projects, #save_projects, #sync_lockfile, #update_projects

Methods included from PkgMixin

#umbrella_pkg

Methods included from Config::Mixin

#config

Constructor Details

#initialize(options = {}) ⇒ Build

Returns a new instance of Build.



6
7
8
9
# File 'lib/xccache/installer/build.rb', line 6

def initialize(options = {})
  super
  @targets = options[:targets]
end

Instance Method Details

#install!Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/xccache/installer/build.rb', line 11

def install!
  perform_install do
    umbrella_pkg.build(
      targets: @targets,
      out_dir: config.spm_cache_dir,
      checksum: true,
      **@build_options,
    )
  end
end