Sha256: c7d933513870d696236eb290cbe79d4c43e43efb9c73a915d62c2d814f7d15fa
Contents?: true
Size: 642 Bytes
Versions: 3
Compression:
Stored size: 642 Bytes
Contents
require 'minarai/actions/base' module Minarai module Actions class Git < Base attribute :repository, required: true attribute :destination, required: true def run clone end private def complete? has_git? && existed? end def clone run_command("git clone #{repository} #{destination}") end def existed? check_specific_command(:check_file_is_directory, destination) end def has_git? check_command 'which git' end def name super || "clone #{repository} to #{destination}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
minarai-0.0.3 | lib/minarai/actions/git.rb |
minarai-0.0.2 | lib/minarai/actions/git.rb |
minarai-0.0.1 | lib/minarai/actions/git.rb |