2017-08-08 18:10:01 +02:00
|
|
|
module Hbc
|
|
|
|
class Container
|
2018-07-14 03:25:42 +02:00
|
|
|
class SvnRepository < Base
|
2018-07-16 09:16:50 +02:00
|
|
|
def self.can_extract?(path:, magic_number:)
|
|
|
|
(path/".svn").directory?
|
2017-08-08 18:10:01 +02:00
|
|
|
end
|
|
|
|
|
2018-07-16 20:22:37 +02:00
|
|
|
def extract_to_dir(unpack_dir, basename:)
|
2018-07-14 03:25:42 +02:00
|
|
|
@command.run!("svn", args: ["export", "--force", path, unpack_dir])
|
2017-08-08 18:10:01 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|