Below is a code for Minifiles Git integration code snippet.
Just insert the code below into this function in your Minifiles config:
config = function()
-- add the git code here
end| require "open-uri" | |
| require "net/http" | |
| Error = Class.new(StandardError) | |
| DOWNLOAD_ERRORS = [ | |
| SocketError, | |
| OpenURI::HTTPError, | |
| RuntimeError, | |
| URI::InvalidURIError, |
| # go to your repository | |
| cd my_project | |
| # check your existing remote | |
| git remote -v | |
| # origin git@mydomain.tld:my_project.git (fetch) | |
| # origin git@mydomain.tld:my_project.git (push) | |
| # Add a new remote, a github.com private repository for example | |
| # the --mirror flag is what's different from a simple new remote |
| ;; Define a "base type" of Dog | |
| (defrecord Dog [breed]) | |
| ;; Define a "sub type" of TrainedDog | |
| (defrecord TrainedDog [dog word]) | |
| ;; The interface that both Dog and TrainedDog will implement | |
| (defprotocol Talker | |
| (bark [_]) | |
| (speak [_]) |