Sha256: 57ad31f6fbe2725dadfa86ca39a801f57c3a1b3bc89683f001707f2c02edb9c9

Contents?: true

Size: 742 Bytes

Versions: 1

Compression:

Stored size: 742 Bytes

Contents

load 'deploy'

# Simply way to deploy the app if you're developing it
# I will probably remove this file later.
set :application, "mouth"
default_run_options[:pty] = true 

set :scm, :none
role :app, "sugar"

task :omg do
  res = `gem build mouth.gemspec`
  if res =~ /Success/
    home = "#{capture('pwd').strip}/mouth"
    file = res.match(/File: (.+)$/)[1]
    run "mkdir -p ~/mouth"
    loc = "#{home}/#{file}"
    upload file, loc
    sudo "gem install #{loc}"
    run "mouth-endoscope -K"
    run "mouth --pidfile #{home}/mouth.pid -K"
    run "sleep 5"
    run "mouth-endoscope --mongohost 10.36.103.70"
    run "mouth --pidfile #{home}/mouth.pid --logfile #{home}/mouth.log -H 10.18.23.135 -P 8889 --mongohost 10.36.103.70"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mouth-0.8.0 Capfile