module CaptainHoog::Cli::Pull

Public Instance Methods

pull_and_clone(repository_url, path) click to toggle source
# File lib/captain_hoog/cli/pull.rb, line 6
def pull_and_clone(repository_url, path)
  target_name = File.basename(repository_url.split('/').last, '.git')
  ::Git.clone(repository_url, target_name, path: path)
rescue
  puts "Default hookin treasury already exists. Skipping.".yellow
end