Sha256: 41f332c527495758193fe114a8175d54e97e1543acd9bbefb19cec7af4b170c6
Contents?: true
Size: 540 Bytes
Versions: 6
Compression:
Stored size: 540 Bytes
Contents
module AppDrone class Git < Drone desc "Clone external resources into your app" category :base param :commit, :boolean, info: 'Commit your repo once built' attr_accessor :fetches def tmp_path; 'git_tmp' end def setup self.fetches = [] end def fetch(f); self.fetches << f end def execute do! :fetch do_finally! :cleanup do_finally! :commit if param(:commit) end def locate(p) File.join tmp_path, p end private def github_repo_url(repo) "git://github.com/#{repo}.git" end end end
Version data entries
6 entries across 6 versions & 1 rubygems