Sha256: 5d0c56acd962e709f4c7b364815f7fe46109745be2f39de6959356c19b3eb1e4

Contents?: true

Size: 847 Bytes

Versions: 5

Compression:

Stored size: 847 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  define_recipe :geminstaller do
    #
    # Tasks
    #
    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
    
    # 
    # Callbacks
    #
    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

5 entries across 5 versions & 1 rubygems

Version Path
factorylabs-fdlcap-0.2.0 lib/fdlcap/recipes/geminstaller.rb
factorylabs-fdlcap-0.2.1 lib/fdlcap/recipes/geminstaller.rb
factorylabs-fdlcap-0.2.2 lib/fdlcap/recipes/geminstaller.rb
factorylabs-fdlcap-0.2.3 lib/fdlcap/recipes/geminstaller.rb
factorylabs-fdlcap-0.2.4 lib/fdlcap/recipes/geminstaller.rb