module Saber class CLI < Thor include Thor::Actions # check_unknown_options! # default_task :install class_option "no-color", :type => :boolean, :banner => "Disable colorization in output" class_option "verbose", :aliases => "-V", :type => :boolean, :banner => "Enable verbose output mode" def initialize(*) super the_shell = (options["no-color"] ? Thor::Shell::Basic.new : shell) Bundler.ui = UI::Shell.new(the_shell) Bundler.ui.debug! if options["verbose"] end desc "clean", "clean up files doesn't in rtorrent client" def clean Task.new.clean end private # helper methods end end