lib/arli/actions/git_repo.rb in arli-0.6.1 vs lib/arli/actions/git_repo.rb in arli-0.6.2

- old
+ new

@@ -3,24 +3,22 @@ module Actions class GitRepo < Action def act c = library.exists? ? git_update_command : git_clone_command - ___ 'running ' + c.blue + ' ' execute(c) - ok rescue Exception => e fuck raise e end def git_update_command - "cd #{path} && git pull --rebase 2>&1" + "cd #{library.path} && git pull --rebase 2>&1" end def git_clone_command - "git clone -v #{library.url} #{path} 2>&1" + "git clone -v #{library.url} #{library.dir} 2>&1" end protected # @param <String> *args — list of arguments or a single string @@ -34,10 +32,8 @@ rescue Exception => e error "Error running [#{args.join(' ')}]\n" + "Current folder is [#{Dir.pwd.yellow}]", e raise e end - - end end end