Class: Gct::Command::Clean::Cache

Inherits:
Gct::Command::Clean show all
Defined in:
lib/gct/command/clean/cache.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) ⇒ Cache

Returns a new instance of Cache.



11
12
13
14
# File 'lib/gct/command/clean/cache.rb', line 11

def initialize(argv)
 
  super
end

Instance Method Details

#runObject



16
17
18
19
20
# File 'lib/gct/command/clean/cache.rb', line 16

def run 
  home_path = Generator::GctFile.get_system_home_path().rstrip
  xcache_path = "#{home_path}/Library/Developer/Xcode/DerivedData/"
  `rm -rf #{xcache_path}`
end