lib/minke/rake/app.rake in minke-0.8.0 vs lib/minke/rake/app.rake in minke-0.9.0

- old
+ new

@@ -8,21 +8,21 @@ begin # Get go packages puts "Go get" container, ret = Minke::GoDocker.create_and_run_container config['docker'], ['go','get','-t','-v','./...'] ensure - container.delete() + Minke::GoDocker.delete_container container end begin # Test application puts "Go test" container, ret = Minke::GoDocker.create_and_run_container config['docker'], ['go','test','./...'] raise Exception, 'Error running command' unless ret == 0 ensure - container.delete() + Minke::GoDocker.delete_container container end end desc "build and test application" task :build => [:test] do @@ -34,10 +34,10 @@ # Build go server container, ret = Minke::GoDocker.create_and_run_container config['docker'], ['go','build','-a','-installsuffix','cgo','-ldflags','\'-s\'','-o', config['go']['application_name']] raise Exception, 'Error running command' unless ret == 0 ensure - container.delete() + Minke::GoDocker.delete_container container end end task :copy_assets do p "Copy assets"