crossroads_capistrano 1.4.10 → 1.4.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.10"
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
- yum.update
11
- yum.install({:base => yum_packages}, :stable ) if exists?(:yum_packages)
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 capture("ls ~/.netrc").strip == ""
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")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crossroads_capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.10
4
+ version: 1.4.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: