Skip to content

Instantly share code, notes, and snippets.

require 'json'
set :itamae_rsync_src, './ops/itamae'
set :itamae_rsync_dst, '/tmp/itamae'
set :itamae_rsync_options, %w(-avzr --delete --exclude='.vagrant')
namespace :itamae do
task :install do
on roles(:all) do
execute <<-SCRIPT
namespace :itamae do
desc 'Itamae plan(dry-run)'
task :plan do
run_itamae(dry_run: true)
end
desc 'Itamae apply'
task :apply do
run_itamae(dry_run: true)
end
@unosk
unosk / deploy.rb
Last active November 18, 2015 10:12
lock '3.4.0'
set :application, 'smart2channel'
set :deploy_to, "/opt/#{fetch(:application)}"
set :repo_url, '[email protected]:unosk/smart2channel.git'
set :branch, 'master'
set :scm, :git
set :linked_dirs, %w(log tmp/pids tmp/cache tmp/sockets vendor/bundle public/uploads)