Class: BuildTool::ModuleActions::Clean

Inherits:
Base
  • Object
show all
Defined in:
lib/build-tool/command_actions.rb

Instance Method Summary collapse

Methods inherited from Base

#do

Constructor Details

#initialize(command, mod, remove_build_directory) ⇒ Clean

Returns a new instance of Clean.



148
149
150
151
# File 'lib/build-tool/command_actions.rb', line 148

def initialize( command, mod, remove_build_directory )
    super( command, 10, :clean, mod )
    @remove_build_directory = remove_build_directory
end

Instance Method Details

#executeObject



153
154
155
156
# File 'lib/build-tool/command_actions.rb', line 153

def execute()
    logger.info "Cleaning"
    @module.clean( @remove_build_directory )
end