lib/cap_recipes/tasks/play.rb in uhl-cap-recipes-0.1.10 vs lib/cap_recipes/tasks/play.rb in uhl-cap-recipes-0.2.10
- old
+ new
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
Capistrano::Configuration.instance(true).load do |configuration|
set :use_sudo, true
- _cset :deploy_to_parent, "/app"
+ _cset :deploy_to_parent, "/opt"
_cset :branch, "master"
default_run_options[:pty] = true
# this is capistrano's default location.
@@ -199,10 +199,10 @@
def self.setup_or_update_reeb_config
[
"if [ ! -e #{reeb_config_dir} ]",
"then sudo mkdir -p #{reeb_config_dir}",
- "sudo chown #{user} #{deploy_to}",
+ "sudo chown #{user} #{reeb_config_dir}",
"cd #{reeb_config_dir}",
"git clone #{reeb_config_repository} .",
"fi",
"cd #{reeb_config_dir}",
"git pull"