Sha256: baed4870a4c4377664e43b2c085754475662920b38441d77cc8e14ede5102ff6

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 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:update_code", "fig:up"

  namespace :fig do

    desc "Rebuild the Docker containers with Fig."
    task :up do
      run "cd #{app_path} && #{fig_bin} up"
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

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