Class: Teapot::Command::Clean

Inherits:
Samovar::Command
  • Object
show all
Defined in:
lib/teapot/command/clean.rb

Instance Method Summary collapse

Instance Method Details

#callObject



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/teapot/command/clean.rb', line 28

def call
	context = parent.context
	logger = parent.logger
	configuration = context.configuration
	
	logger.info "Removing #{configuration.build_path}..."
	FileUtils.rm_rf configuration.build_path

	logger.info "Removing #{configuration.packages_path}..."
	FileUtils.rm_rf configuration.packages_path
end