Class: Gct::Command::Op::Xcache

Inherits:
Gct::Command::Op show all
Defined in:
lib/gct/command/op/xcache.rb

Instance Method Summary collapse

Methods inherited from Gct::Command

#auto_add_tag, #check_branch_can_be_update, #config_gitlab, #current_branch, #file_contents, #get_project, #gitlab_error, options, run

Constructor Details

#initialize(argv) ⇒ Xcache

Returns a new instance of Xcache.



14
15
16
# File 'lib/gct/command/op/xcache.rb', line 14

def initialize(argv)
  super
end

Instance Method Details

#openXcodeCacheObject



26
27
28
29
# File 'lib/gct/command/op/xcache.rb', line 26

def openXcodeCache
  puts 'Xcode缓存路径为:~/Library/Developer/Xcode/DerivedData/'.green
  system 'open ~/Library/Developer/Xcode/DerivedData/'
end

#runObject



22
23
24
# File 'lib/gct/command/op/xcache.rb', line 22

def run
  openXcodeCache
end

#validate!Object



18
19
20
# File 'lib/gct/command/op/xcache.rb', line 18

def validate!
  super
end