Sha256: 85c60a2c8e59c8e577d9ab0a071d5d2e668f2fe591ee21df74c5f84c999813b7

Contents?: true

Size: 855 Bytes

Versions: 1

Compression:

Stored size: 855 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  namespace :geminstaller do
    desc "Run geminstaller"
    task :run, :only => { :geminstaller => true } do
      sudo "/usr/bin/geminstaller -c #{release_path}/config/geminstaller.yml --geminstaller-output=all --rubygems-output=all"
    end

    desc "Install geminstaller"
    task :install, :only => { :geminstaller => true } do
      sudo "gem install geminstaller"
      sudo "gem source -a http://gems.github.com"
    end
  end
  
  #
  # Configure Callbacks
  #
  # Run geminstaller to make sure gems are installed.
  if exists?(:use_geminstaller)
    after "deploy:setup",             "geminstaller:install"
    after "geminstaller:install",     "geminstaller:run"
    after "deploy:symlink",           "geminstaller:run"
    after "geminstaller:run",         "deploy:migrate"
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
factorylabs-fdlcap-0.1.0 lib/fdlcap/geminstaller.rb