@@ -0,0 +1,767 @@
+# -*- coding: utf-8 -*-%0A%0A# Copyright 2013 mongoapi authors. All rights reserved.%0A# Use of this source code is governed by a BSD-style%0A# license that can be found in the LICENSE file.%0A%0Aimport os%0Afrom fabric.api import env, local, put, run%0A%0Acurrent_dir = os.path.abspath(os.path.dirname(__file__))%0Aenv.user = 'ubuntu'%0Aenv.bin_path = '/home/%25s/bin' %25 env.user%0A%0A%0Adef build():%0A    local(%22go clean%22)%0A    local(%22GOOS=linux GOARCH=amd64 go build%22)%0A%0A%0Adef send():%0A    run(%22mkdir -p %25s%22 %25 env.bin_path)%0A    put(os.path.join(current_dir, %22mongoapi%22), env.bin_path)%0A%0A%0Adef stop():%0A    run(%22circusctl stop mongoapi%22)%0A%0A%0Adef start():%0A    run(%22circusctl start mongoapi%22)%0A%0A%0Adef clean():%0A    local(%22rm mongoapi%22)%0A%0A%0Adef deploy():%0A    build()%0A    stop()%0A    send()%0A    start()%0A    clean()%0A

create file