Class: XCCache::Command::Off
- Inherits:
-
XCCache::Command
- Object
- CLAide::Command
- XCCache::Command
- XCCache::Command::Off
- Defined in:
- lib/xccache/command/off.rb
Instance Attribute Summary
Attributes inherited from XCCache::Command
#build_options, #install_options
Instance Method Summary collapse
-
#initialize(argv) ⇒ Off
constructor
A new instance of Off.
- #run ⇒ Object
Methods inherited from XCCache::Command
Methods included from XCCache::Config::Mixin
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
#run ⇒ Object
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 |