Sha256: 1a41e0d569dbd1aeee8f499b5a3e73e5e7846b4eea17e8bd40f22a099c8c8298

Contents?: true

Size: 776 Bytes

Versions: 1

Compression:

Stored size: 776 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do

  require 'capistrano/recipes/deploy/scm'
  require 'capistrano/recipes/deploy/strategy'

  # ===============================================
  # Override these variables in your local Capfile.
  # ===============================================

  set :scm, :git
  set :deploy_via, :remote_cache
  _cset :branch, "master"
  set :git_enable_submodules, true

  set :fig_bin, "fig"

  after "deploy:create_symlink", "fig:kill", "fig:up"

  namespace :fig do

    desc "Start the Docker containers with Fig."
    task :up do
      run "cd #{current_path} && #{fig_bin} up -d"
    end

    desc "Kill the Docker containers with Fig."
    task :kill do
      run "cd #{current_path} && #{fig_bin} kill"
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-fig-0.4.0 lib/capistrano-fig.rb