Class: RVM::Environment::CleanupWrapper
- Inherits:
-
Object
- Object
- RVM::Environment::CleanupWrapper
- 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
-
#all ⇒ Object
(also: #everything)
Cleans up archives, repos, sources and logs.
-
#archives ⇒ Object
Cleans up everything in the archives folder.
-
#initialize(parent) ⇒ CleanupWrapper
constructor
A new instance of CleanupWrapper.
-
#logs ⇒ Object
Cleans up all of the logs.
-
#repos ⇒ Object
(also: #repositories)
Cleans up everything in the repos path.
-
#sources ⇒ Object
(also: #src)
Cleans up everything in the source folder.
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
#all ⇒ Object 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 |
#archives ⇒ Object
Cleans up everything in the archives folder
30 31 32 |
# File 'lib/rvm/environment/cleanup.rb', line 30 def archives @parent.cleanup_archives end |
#logs ⇒ Object
Cleans up all of the logs
47 48 49 |
# File 'lib/rvm/environment/cleanup.rb', line 47 def logs @parent.cleanup_logs end |
#repos ⇒ Object 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 |
#sources ⇒ Object 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 |