Sha256: b86d87defd2543353607ba1789fb0d05c3ffc69c03f08f76ac5e064df3b36c4b
Contents?: true
Size: 548 Bytes
Versions: 2
Compression:
Stored size: 548 Bytes
Contents
# encoding: UTF-8 class Treet::Gitfarm < Treet::Farm attr_reader :author def initialize(opts) raise ArgumentError, "No git farm without an author for commits" unless opts[:author] super @repotype = Treet::Gitrepo @author = opts[:author] end def self.plant(opts) super(opts.merge(:repotype => Treet::Gitrepo)) end def repos super(:author => author) end def add(hash, opts = {}) repo = super(hash, opts.merge(:author => author)) if opts[:tag] repo.tag(opts[:tag]) end repo end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
treet-0.10.3 | lib/treet/gitfarm.rb |
treet-0.10.2 | lib/treet/gitfarm.rb |