lib/vanagon/component/source/http.rb
def cleanup
          if ARCHIVE_EXTENSIONS.include?(@extension)
            return "rm #{@file}; rm -r #{dirname}"
          else
            # Because dirname will be ./ here, we don't want to try to nuke it
            return "rm #{@file}"
          end
        end
# Return the correct incantation to cleanup the source archive and source directory for a given source
#
# @return [String] command to cleanup the source
# @raise [RuntimeError] an exception is raised if there is no known extraction method for @extension
Return the correct incantation to cleanup the source archive and source directory for a given source
Return the correct incantation to cleanup the source archive and source directory for a given source
def cleanup
          if ARCHIVE_EXTENSIONS.include?(@extension)
            return "rm #{@file}; rm -r #{dirname}"
          else
            return "rm #{@file}"
          end
        end
def cleanup if ARCHIVE_EXTENSIONS . include? ( @extension ) return "rm #{@file}; rm -r #{dirname}" else return "rm #{@file}" end end
Return the correct incantation to cleanup the source archive and source directory for a given source
Return the correct incantation to cleanup the source archive and source directory for a given source
# Because dirname will be ./ here, we don't want to try to nuke it
command to cleanup the source
command to cleanup the source
String
[RuntimeError] an exception is raised if there is no known extraction method for @extension
[ RuntimeError ] an exception is raised if there is no known extraction method for @extension