-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add install script * Add Formula file
- Loading branch information
Showing
4 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class OnesignalCli < Formula | ||
desc "The OneSignal CLI is a tool to work with OneSignal projects." | ||
homepage "https://github.com/OneSignal/cli" | ||
url "https://github.com/OneSignal/cli/archive/refs/tags/v0.0.1.tar.gz" | ||
sha256 "32bf3183804b4c823669eabd426da0f5fb69f7130e8fae2baeba14665420e964" | ||
license "MIT" | ||
version "0.0.1" | ||
|
||
def install | ||
lib.install Dir["lib/*"] | ||
|
||
bin.install Dir["bin/*"] | ||
end | ||
|
||
test do | ||
version_output = shell_output("#{bin}/onesignal version 2>&1") | ||
assert_match("cli Version: #{version}", version_output) | ||
end | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash -e | ||
# | ||
# script/install | ||
# | ||
|
||
echo "This is a shell script" | ||
|
||
# `gem install bundler` unless `gem list`.lines.grep(/^bundler \(.*\)/) | ||
# `gem install bundler` | ||
# `$PREFIX bin/bundle install` |
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
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