Sha256: da9954c60675026e7f1e93a1ee88689a168276d9399ca8bbe5cf54dbfa49c7ab
Contents?: true
Size: 738 Bytes
Versions: 1
Compression:
Stored size: 738 Bytes
Contents
module Minke module Commands class Go def commands { :build => { :get => ['go','get','-t','-v','-d','./...'], :build => ['go','build','-a','-installsuffix','cgo','-ldflags','\'-s\'','-o', "application"], :test => ['go','test','./...'] }, :docker => { :image => 'golang:latest', :env => ['CGO_ENABLED=0'], :binds => ["#{ENV['GOPATH']}/src:/go/src"], :working_directory => "#{working_directory}" } } end def working_directory dir = File.expand_path('../.') gopath = "#{ENV['GOPATH']}" new_dir = "/go" + dir.gsub(gopath,'') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minke-0.13.0 | lib/minke/commands/go.rb |