Module: Shnell::Actions::GitClone

Includes:
Filander::Base
Included in:
Shnell
Defined in:
lib/shnell/actions/git_clone.rb

Instance Method Summary collapse

Instance Method Details

#git_clone(repository, destination) ⇒ Object



5
6
7
8
9
10
# File 'lib/shnell/actions/git_clone.rb', line 5

def git_clone(repository, destination)
  report :clone, repository
  unless Filander.behavior == :pretend
    system "git clone #{repository} #{join_destination(destination)}"
  end
end