Class: XCCache::Command::Build

Inherits:
XCCache::Command show all
Defined in:
lib/xccache/command/build.rb

Instance Attribute Summary

Attributes inherited from XCCache::Command

#build_options, #install_options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from XCCache::Command

#str_to_sdks

Methods included from XCCache::Config::Mixin

#config

Constructor Details

#initialize(argv) ⇒ Build

Returns a new instance of Build.



18
19
20
21
# File 'lib/xccache/command/build.rb', line 18

def initialize(argv)
  super
  @targets = argv.arguments!
end

Class Method Details

.optionsObject



8
9
10
11
12
13
# File 'lib/xccache/command/build.rb', line 8

def self.options
  [
    *Options.build_options,
    ["--recursive", "Whether to build their recursive targets if cache-missed (default: false)"],
  ].concat(super)
end

Instance Method Details

#runObject



23
24
25
# File 'lib/xccache/command/build.rb', line 23

def run
  Installer::Build.new(ctx: self, targets: @targets).install!
end