crossroads_capistrano 1.4.17 → 1.4.18

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.17"
6
+ s.version = "1.4.18"
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"]
@@ -1,11 +1,11 @@
1
1
  namespace :ldap do
2
2
  desc "Create the LDAP configuration file"
3
3
  task :config do
4
- prompt_with_default("LDAP host", :ldap_host, "ldap.crossroadsint.org")
5
- prompt_with_default("LDAP domain", :ldap_domain, "crossroadsint")
6
- prompt_with_default("LDAP username", :ldap_bind_username, "ldapuser")
4
+ prompt_with_default("LDAP host", :ldap_host, "")
5
+ prompt_with_default("LDAP domain", :ldap_domain, "")
6
+ prompt_with_default("LDAP username", :ldap_bind_username, "")
7
7
  prompt_with_default("LDAP password", :ldap_bind_password, "")
8
- prompt_with_default("LDAP search base", :ldap_base_dn, "dc=crossroadsint,dc=org")
8
+ prompt_with_default("LDAP search base", :ldap_base_dn, "")
9
9
  prompt_with_default("LDAP port", :ldap_port, "389")
10
10
  ldap_yml = <<-EOF
11
11
  host: #{ldap_host}
@@ -1,11 +1,5 @@
1
1
  namespace :ts do
2
2
 
3
- desc "Links the sphinx database files by inserting magic code"
4
- task :symlink do
5
- sed "#{release_path}/script/link_sphinx.rb", {"DEPLOY_TO" => "shared"}
6
- run "#{release_path}/script/runner -e production #{release_path}/script/link_sphinx.rb"
7
- end
8
-
9
3
  desc "Index data for Sphinx using Thinking Sphinx's settings"
10
4
  task :in do
11
5
  run "cd #{current_path} && RAILS_ENV=production rake ts:in"
@@ -46,4 +40,3 @@ and no need for recovery."""
46
40
  end
47
41
 
48
42
  end
49
-
@@ -2,8 +2,9 @@
2
2
  # ----------------------------------------------------------
3
3
 
4
4
  # Fetch user from ~/.netrc or $USER.
5
- set :user, if File.exist?("~/.netrc")
6
- File.open(`echo ~/.netrc`.strip, 'r').read[/login ([a-z_]+)/m, 1]
5
+ netrc = `echo ~/.netrc`.strip
6
+ set :user, if File.exist?(netrc)
7
+ File.open(netrc, 'r').read[/login ([a-z_]+)/m, 1]
7
8
  else
8
9
  `echo $USER`.strip
9
10
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crossroads_capistrano
3
3
  version: !ruby/object:Gem::Version
4
- hash: 37
4
+ hash: 35
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 17
10
- version: 1.4.17
9
+ - 18
10
+ version: 1.4.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve Kenworthy
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-06-03 00:00:00 +08:00
20
+ date: 2011-06-16 00:00:00 +08:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency