lib/teapot/controller/clean.rb in teapot-0.7.2 vs lib/teapot/controller/clean.rb in teapot-0.7.3
- old
+ new
@@ -21,15 +21,13 @@
require 'teapot/controller'
module Teapot
class Controller
def clean
- context, configuration = load_teapot
-
log "Removing #{configuration.platforms_path}...".color(:cyan)
- FileUtils.rm_rf configuration.platforms_path
+ FileUtils.rm_rf context.configuration.platforms_path
log "Removing #{configuration.packages_path}...".color(:cyan)
- FileUtils.rm_rf configuration.packages_path
+ FileUtils.rm_rf context.configuration.packages_path
end
end
end