Class: RVM::Environment::CleanupWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/rvm/environment/cleanup.rb

Overview

Implements a Ruby-like interface to cleanup, making it nicer to deal with.

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ CleanupWrapper

Returns a new instance of CleanupWrapper.



19
20
21
# File 'lib/rvm/environment/cleanup.rb', line 19

def initialize(parent)
  @parent = parent
end

Instance Method Details

#allObject Also known as: everything

Cleans up archives, repos, sources and logs



24
25
26
# File 'lib/rvm/environment/cleanup.rb', line 24

def all
  @parent.cleanup_all
end

#archivesObject

Cleans up everything in the archives folder



30
31
32
# File 'lib/rvm/environment/cleanup.rb', line 30

def archives
  @parent.cleanup_archives
end

#logsObject

Cleans up all of the logs



47
48
49
# File 'lib/rvm/environment/cleanup.rb', line 47

def logs
  @parent.cleanup_logs
end

#reposObject Also known as: repositories

Cleans up everything in the repos path



35
36
37
# File 'lib/rvm/environment/cleanup.rb', line 35

def repos
  @parent.cleanup_repos
end

#sourcesObject Also known as: src

Cleans up everything in the source folder



41
42
43
# File 'lib/rvm/environment/cleanup.rb', line 41

def sources
  @parent.cleanup_sources
end