Class: XCCache::Command::Off

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

Instance Attribute Summary

Attributes inherited from XCCache::Command

#build_options, #install_options

Instance Method Summary collapse

Methods inherited from XCCache::Command

#str_to_sdks

Methods included from XCCache::Config::Mixin

#config

Constructor Details

#initialize(argv) ⇒ Off

Returns a new instance of Off.



12
13
14
15
# File 'lib/xccache/command/off.rb', line 12

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

Instance Method Details

#runObject



17
18
19
20
21
22
23
# File 'lib/xccache/command/off.rb', line 17

def run
  return if @targets.empty?

  UI.info("Will force-use source mode for targets: #{@targets}")
  @targets.each { |t| config.ignore_list << "*/#{t}" }
  Installer::Use.new(ctx: self).install!
end