Class: XCCache::Command::Remote

Inherits:
XCCache::Command show all
Defined in:
lib/xccache/command/remote.rb,
lib/xccache/command/remote/pull.rb,
lib/xccache/command/remote/push.rb

Direct Known Subclasses

Pull, Push

Defined Under Namespace

Classes: Pull, Push

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) ⇒ Remote

Returns a new instance of Remote.



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

def initialize(argv)
  super
  @branch = argv.option("branch", "main")
end

Class Method Details

.optionsObject



11
12
13
14
15
16
# File 'lib/xccache/command/remote.rb', line 11

def self.options
  [
    Options::CONFIG,
    ["--branch=foo", "Cache branch (if using git) (default: main)"],
  ].concat(super)
end

Instance Method Details

#storageObject



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

def storage
  @storage ||= create_storage
end