class Muwu::ProjectResetCompiled

Public Class Methods

new(project) click to toggle source
# File lib/muwu/project_builder/project_reset_compiled.rb, line 11
def initialize(project)
  @project = project
end

Public Instance Methods

reset_compiled() click to toggle source
# File lib/muwu/project_builder/project_reset_compiled.rb, line 19
def reset_compiled
  puts "- Resetting #{@project.path_compiled}"
  begin
    FileUtils.remove_entry_secure(@project.path_compiled)
  rescue Errno::ENOENT
  ensure
    FileUtils.mkdir(@project.path_compiled)
  end
end