crossroads_capistrano 1.4.10 → 1.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "crossroads_capistrano"
|
|
6
|
-
s.version = "1.4.
|
|
6
|
+
s.version = "1.4.11"
|
|
7
7
|
s.platform = Gem::Platform::RUBY
|
|
8
8
|
s.authors = ["Steve Kenworthy", "Ben Tillman", "Nathan Broadbent"]
|
|
9
9
|
s.email = ["it_dept@crossroads.org.hk"]
|
|
@@ -5,8 +5,7 @@ namespace :config do
|
|
|
5
5
|
puts " - In order to skip a file, you just need to leave any prompt blank."
|
|
6
6
|
puts " - You will need to edit the '.yml.example' files to change any hard-coded values."
|
|
7
7
|
|
|
8
|
-
(Dir.glob("config/*.yml.example")
|
|
9
|
-
Dir.glob("config/*.yml.#{stage}.example")).each do |config_file|
|
|
8
|
+
(Dir.glob("config/*.yml.example")).each do |config_file|
|
|
10
9
|
unless config_file.include?("database.yml")
|
|
11
10
|
skip_file = false
|
|
12
11
|
filename = File.basename(config_file).gsub(/.example$/,'')
|
|
@@ -7,8 +7,10 @@ before "deploy:cold", "stack:setup"
|
|
|
7
7
|
namespace :stack do
|
|
8
8
|
desc "Setup operating system and rails environment"
|
|
9
9
|
task :setup do
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
if exists?(:yum_packages)
|
|
11
|
+
yum.update
|
|
12
|
+
yum.install({:base => yum_packages}, :stable)
|
|
13
|
+
end
|
|
12
14
|
gemrc.setup
|
|
13
15
|
bundler.setup
|
|
14
16
|
deploy.setup
|
|
@@ -54,7 +56,7 @@ end
|
|
|
54
56
|
namespace :netrc do
|
|
55
57
|
desc "Setup ~/.netrc file for internal git https auth"
|
|
56
58
|
task :setup do
|
|
57
|
-
if
|
|
59
|
+
if !remote_file_exists?("~/.netrc")
|
|
58
60
|
puts "\n ** == Configuring ~/.netrc ..."
|
|
59
61
|
puts " ** (Enter 's' to skip this file.)\n\n"
|
|
60
62
|
prompt_with_default("Netrc Machine", :netrc_machine, "svn.globalhand.org")
|