lib/document.rb
# Deletes the given version, including its files.
Deletes the given version, including its files.
Deletes the given version including its files .
def delete_version version
      return unless File.exist?( directory + version )
      raise VersionIsCurrent.new if version == CURRENT
      raise VersionIsCurrent.new if (directory + CURRENT).realpath == (directory+version).realpath
      FileUtils.rm_rf( directory + version )
    end
def delete_version version return unless File . exist? ( directory + version ) raise VersionIsCurrent . new if version == CURRENT raise VersionIsCurrent . new if ( directory + CURRENT ) . realpath == ( directory + version ) . realpath FileUtils . rm_rf ( directory + version ) end
Deletes the given version, including its files.
Deletes the given version including its files .
version
<not_specific>