Class: FPM::Cookery::SourceHandler::Svn

Inherits:
Template
  • Object
show all
Defined in:
lib/fpm/cookery/source_handler/svn.rb

Constant Summary collapse

CHECKSUM =
false
NAME =
:svn

Instance Attribute Summary

Attributes inherited from Template

#builddir, #cachedir, #has_checksum, #name, #options, #url

Instance Method Summary collapse

Methods inherited from Template

#checksum?, #initialize, #local_path, #source

Constructor Details

This class inherits a constructor from FPM::Cookery::SourceHandler::Template

Instance Method Details

#extractObject



19
20
21
22
23
24
# File 'lib/fpm/cookery/source_handler/svn.rb', line 19

def extract
  Dir.chdir(builddir) do
    safesystem('cp', '-Rp', local_path, '.')
    extracted_source
  end
end

#fetchObject



11
12
13
14
15
16
17
# File 'lib/fpm/cookery/source_handler/svn.rb', line 11

def fetch
  # TODO(lusis) - implement some caching using 'svn info'?
  Dir.chdir(cachedir) do
    svn(url, local_path)
  end
  local_path
end