Class: Gct::Command::Clean::Cache
- Inherits:
-
Gct::Command::Clean
- Object
- CLAide::Command
- Gct::Command
- Gct::Command::Clean
- Gct::Command::Clean::Cache
- Defined in:
- lib/gct/command/clean/cache.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Cache
constructor
A new instance of Cache.
- #run ⇒ Object
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
#run ⇒ Object
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 |