kompanee-recipes 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kompanee-recipes might be problematic. Click here for more details.

@@ -10,7 +10,7 @@ Capistrano::Configuration.instance(:must_exist).load do
10
10
  CREATESCRIPT
11
11
 
12
12
  put create_script, "#{user_home}/create_#{application}_db_script"
13
- sudo "mysql --user=root --password=#{db_root_password} < #{user_home}/create_#{application}_db_script"
13
+ sudo %Q{bash -c "mysql --user=root --password=#{db_root_password} < #{user_home}/create_#{application}_db_script"}
14
14
  run "rm #{user_home}/create_#{application}_db_script"
15
15
  end
16
16
 
@@ -22,7 +22,7 @@ Capistrano::Configuration.instance(:must_exist).load do
22
22
  DROPSCRIPT
23
23
 
24
24
  put drop_script, "#{user_home}/drop_#{application}_db_script"
25
- sudo "mysql --user=root --password=#{db_root_password} < #{user_home}/drop_#{application}_db_script"
25
+ sudo %Q{bash -c "mysql --user=root --password=#{db_root_password} < #{user_home}/drop_#{application}_db_script"}
26
26
  run "rm #{user_home}/drop_#{application}_db_script"
27
27
  end
28
28
  end
@@ -12,18 +12,18 @@ Capistrano::Configuration.instance(:must_exist).load do
12
12
  ######################################################################
13
13
  set :domain, "thekompanee.com"
14
14
 
15
- set :user, "deploy"
16
- set :user_home, "/home/#{user}"
17
- set :deploy_dir, "/var/www"
18
- set :deploy_name, "#{application_short}.#{domain}"
19
- set :deploy_to, "#{deploy_dir}/#{deploy_name}"
15
+ set(:user) {"deploy"}
16
+ set(:user_home) {"/home/#{user}"}
17
+ set(:deploy_dir) {"/var/www"}
18
+ set(:deploy_name) {"#{application_short}.#{domain}"}
19
+ set(:deploy_to) {"#{deploy_dir}/#{deploy_name}"}
20
20
 
21
21
  set :server_ip, "174.143.210.58"
22
22
  set :app_server_ip, server_ip
23
23
  set :web_server_ip, server_ip
24
24
  set :db_server_ip, server_ip
25
25
 
26
- set :server_name, "zeus.#{domain}"
26
+ set(:server_name) {"zeus.#{domain}"}
27
27
  set :web_server_name, server_name
28
28
  set :app_server_name, server_name
29
29
  set :db_server_name, server_name
@@ -43,7 +43,7 @@ Capistrano::Configuration.instance(:must_exist).load do
43
43
  ######################################################################
44
44
  set :scm, :git
45
45
  set :github_account, "thekompanee"
46
- set :repository, "git@github.com:#{github_account}/#{application}.git"
46
+ set(:repository) {"git@github.com:#{github_account}/#{application}.git"}
47
47
  set :branch, "master"
48
48
  set :deploy_via, :remote_cache
49
49
  ssh_options[:forward_agent] = true
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module KompaneeRecipes
5
- VERSION = '0.0.3'
5
+ VERSION = '0.0.4'
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kompanee-recipes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - The Kompanee