capones_recipes 1.15.1 → 1.15.2

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.
@@ -118,7 +118,7 @@ Capistrano::Configuration.instance.load do
118
118
  #
119
119
  def remote_database_config(db)
120
120
  env = rails_env || db
121
- config = capture "cat #{deploy_to}/current/config/database.yml"
121
+ config = capture "cat #{latest_release}/config/database.yml"
122
122
  database = YAML::load(config)
123
123
  return database["#{env}"]['username'], database["#{env}"]['password'], database["#{env}"]['database'], database["#{env}"]['host']
124
124
  end
@@ -1,13 +1,7 @@
1
1
  Capistrano::Configuration.instance.load do
2
- before "db:symlink", "settings_logic:symlink"
2
+ before "deploy:finalize_update", "settings_logic:symlink"
3
3
 
4
4
  namespace :settings_logic do
5
- desc "Create application yaml in capistrano shared path"
6
- task :prepare_config do
7
- run "mkdir -p #{shared_path}/config"
8
- upload "config/application.yml.example", "#{shared_path}/config/application.yml", :via => :scp
9
- end
10
-
11
5
  desc "Make symlink for shared application yaml"
12
6
  task :symlink do
13
7
  run "ln -nfs #{shared_path}/config/application.yml #{latest_release}/config/application.yml"
@@ -1,3 +1,3 @@
1
1
  module CaponesRecipes
2
- VERSION = "1.15.1"
2
+ VERSION = "1.15.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capones_recipes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 41
4
+ hash: 47
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 15
9
- - 1
10
- version: 1.15.1
9
+ - 2
10
+ version: 1.15.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek (CyT)
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-02-15 00:00:00 Z
19
+ date: 2012-02-28 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: capistrano
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  requirements: []
190
190
 
191
191
  rubyforge_project:
192
- rubygems_version: 1.8.12
192
+ rubygems_version: 1.8.10
193
193
  signing_key:
194
194
  specification_version: 3
195
195
  summary: Some capistrano recipes for use.