class OneCmd::Command::Xcode::RmDerivedData

Public Class Methods

new(argv) click to toggle source
Calls superclass method OneCmd::Command::new
# File lib/onecmd/command/xcode/rm_derived_data.rb, line 15
def initialize(argv)
  @count_only = argv.flag?('count-only')
  super
end
options() click to toggle source
Calls superclass method OneCmd::Command::options
# File lib/onecmd/command/xcode/rm_derived_data.rb, line 11
def self.options
  [['--count-only', 'Show the total number of repos']].concat(super)
end

Public Instance Methods

run() click to toggle source
# File lib/onecmd/command/xcode/rm_derived_data.rb, line 20
def run
  path = "#{ENV['HOME']}/Library/Developer/Xcode/DerivedData"
  FileUtils.rm_rf(path)
  puts "✅ rm derived data: #{path}"
end