mirror of
https://github.com/strongdm/comply
synced 2024-11-14 03:44:55 +00:00
homebrew
This commit is contained in:
parent
a383b24a66
commit
bb1a7f3f0f
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
comply
|
||||
output
|
||||
dist
|
||||
|
7
Makefile
7
Makefile
@ -3,8 +3,11 @@ GO_SOURCES := $(shell find . -name '*.go')
|
||||
THEME_SOURCES := $(shell find themes)
|
||||
|
||||
assets: $(THEME_SOURCES)
|
||||
go-bindata-assetfs -pkg theme -prefix themes themes/...
|
||||
mv bindata_assetfs.go internal/theme/themes_bindata.go
|
||||
go get github.com/jteeuwen/go-bindata/...
|
||||
go get github.com/elazarl/go-bindata-assetfs/...
|
||||
go install github.com/elazarl/go-bindata-assetfs
|
||||
go-bindata-assetfs -o bindata.go -pkg theme -prefix themes themes/...
|
||||
mv bindata.go internal/theme/themes_bindata.go
|
||||
|
||||
comply: assets $(GO_SOURCES)
|
||||
go build github.com/strongdm/comply/cmd/comply
|
||||
|
22
comply.rb
Normal file
22
comply.rb
Normal file
@ -0,0 +1,22 @@
|
||||
class Comply < Formula
|
||||
desc ""
|
||||
homepage ""
|
||||
url "file:///Users/jmccarthy/Downloads/comply-1.1.3.tgz"
|
||||
sha256 "01f9920e5e9fbd29386e4a4131fac78c002730e49c3f870a0ee2b958c3ce75f6"
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
ENV.prepend_create_path "PATH", buildpath/"bin"
|
||||
(buildpath/"src/github.com/strongdm/comply").install buildpath.children
|
||||
cd "src/github.com/strongdm/comply" do
|
||||
system "make", "brew"
|
||||
bin.install "bin/comply"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/sdm", "logout"
|
||||
end
|
||||
end
|
@ -32,7 +32,9 @@ func Main() {
|
||||
func newApp() *cli.App {
|
||||
app := cli.NewApp()
|
||||
app.Name = "comply"
|
||||
app.HideVersion = true
|
||||
if Version == "" {
|
||||
app.HideVersion = true
|
||||
}
|
||||
app.Version = Version
|
||||
app.Usage = "policy compliance toolkit"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user