This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
OlderNewer