Created
March 8, 2018 20:34
-
-
Save innovid-rnd/3550c6a5dc1fb0cb4b27a7a3d08bce46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HelloWorld < Formula | |
desc "usefull script that prints Hello World to your Console" | |
homepage "https://bitbucket.org/user/repo" | |
def self.get_file_as_str(str) | |
return (File.read File.expand_path(str)).rstrip | |
end | |
url "https://#{get_file_as_str("~/git_user")}:#{get_file_as_str("~/git_password")}@bitbucket.org/user/repo/get/HEAD.zip", :using => :curl | |
def install | |
bin.install "innovid/hello-world" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment