brew/Library/Homebrew/cask/lib/hbc/container/svn_repository.rb

17 lines
329 B
Ruby
Raw Normal View History

2017-08-08 18:10:01 +02:00
module Hbc
class Container
class SvnRepository < Base
2017-08-08 18:10:01 +02:00
def self.me?(criteria)
criteria.path.join(".svn").directory?
end
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