Sha256: 1ff0ff71281c383f30b0b6cedd2ff47a2f27650ed393d613dc5347e72af56c4e
Contents?: true
Size: 594 Bytes
Versions: 5
Compression:
Stored size: 594 Bytes
Contents
require 'r10k' require 'r10k/module' require 'r10k/git/working_dir' require 'forwardable' module R10K module Module class Git include R10K::Module def self.implement?(name, args) args.is_a? Hash and args.has_key?(:git) rescue false end extend Forwardable def_delegator :@working_dir, :sync def initialize(name, basedir, args) @name, @basedir, @args = name, basedir, args @remote = @args[:git] @ref = (@args[:ref] || 'master') @working_dir = R10K::Git::WorkingDir.new(@ref, @remote, @basedir, @name) end def version @ref end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
r10k-1.0.0 | lib/r10k/module/git.rb |
r10k-1.0.0rc4 | lib/r10k/module/git.rb |
r10k-1.0.0rc3 | lib/r10k/module/git.rb |
r10k-1.0.0rc2 | lib/r10k/module/git.rb |
r10k-1.0.0rc1 | lib/r10k/module/git.rb |