Sha256: 022341b01be5fffbb25074b1654fa55fe8a1a57ad03bc80043603e6c73fbed4a

Contents?: true

Size: 929 Bytes

Versions: 25

Compression:

Stored size: 929 Bytes

Contents

# Deploy this gem to the gem server.
#
# Usage for a gem already on the gem server:
#
#   cap deploy
#
# For a new gem:
#
#   cap deploy:new

# Global Variables =================================================================================
default_run_options[:pty] = true
role :app, 'jose.seologic.com'
set :deploy_to, '/home/containers/rails/system/blog_logic'
set :repository, 'git@github.com:ivanoblomov/blog_logic.git'
set :scm, :git
set :use_sudo, false
set :user, 'cnewton'

namespace :deploy do
  desc "Clone a new gem's repository on the gem server."
  task :new do
    run "git clone -q #{repository} #{deploy_to}"
  end

  task :install do
    run "cd #{deploy_to}; rm -f Gemfile.lock; sudo bundle; sudo rake install"
  end

  # disable default behavior
  task :restart do
  end

  task :update do
    run "cd #{deploy_to}; git pull"
  end
end

after 'deploy', 'deploy:install'
after 'deploy:new', 'deploy:install'

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
blog_logic-1.4.0 config/deploy.rb
blog_logic-1.3.1 config/deploy.rb
blog_logic-1.3.0 config/deploy.rb
blog_logic-1.2.4 config/deploy.rb
blog_logic-1.2.3 config/deploy.rb
blog_logic-1.2.2 config/deploy.rb
blog_logic-1.2.1 config/deploy.rb
blog_logic-1.2.0 config/deploy.rb
blog_logic-1.1.9 config/deploy.rb
blog_logic-1.1.8 config/deploy.rb
blog_logic-1.1.7 config/deploy.rb
blog_logic-1.1.6 config/deploy.rb
blog_logic-1.1.5 config/deploy.rb
blog_logic-1.1.4 config/deploy.rb
blog_logic-1.1.3 config/deploy.rb
blog_logic-1.1.2 config/deploy.rb
blog_logic-1.1.1 config/deploy.rb
blog_logic-1.1.0 config/deploy.rb
blog_logic-1.0.0 config/deploy.rb
blog_logic-0.7.7 config/deploy.rb