2017-08-08 18:10:01 +02:00
|
|
|
module Hbc
|
|
|
|
class Container
|
2018-07-14 03:25:42 +02:00
|
|
|
class SvnRepository < Base
|
2017-08-08 18:10:01 +02:00
|
|
|
def self.me?(criteria)
|
|
|
|
criteria.path.join(".svn").directory?
|
|
|
|
end
|
|
|
|
|
2018-07-14 03:25:42 +02:00
|
|
|
def extract
|
|
|
|
path = @path
|
|
|
|
unpack_dir = @cask.staged_path
|
|
|
|
|
|
|
|
@command.run!("svn", args: ["export", "--force", path, unpack_dir])
|
2017-08-08 18:10:01 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|