Class: Gct::Command::Clean::Lint

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

Returns a new instance of Lint.



15
16
17
18
# File 'lib/gct/command/clean/lint.rb', line 15

def initialize(argv)
  @pod_name = argv.shift_argument
  super
end

Instance Method Details

#runObject



20
21
22
23
24
# File 'lib/gct/command/clean/lint.rb', line 20

def run 
  home_path = Generator::GctFile.get_system_home_path().rstrip
  lintcahce_path = "#{home_path}/Library/Caches/CocoaPods/Pods/External/#{@pod_name}"
  `rm -rf #{lintcahce_path}`
end