capobvious 0.1.0 → 0.1.1

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.
@@ -23,7 +23,14 @@ Capistrano::Configuration.instance.load do
23
23
  end
24
24
 
25
25
  database_yml_path = "config/database.yml"
26
- config = YAML::load(capture("cat #{current_path}/#{database_yml_path}"))
26
+
27
+ serv_path = "#{current_path}/#{database_yml_path}"
28
+ if capture("if [ -f #{serv_path} ]; then echo '1'; fi") == '1'
29
+ database_yml = capture("cat #{serv_path}")
30
+ else
31
+ database_yml = File.open(database_yml_path)
32
+ end
33
+ config = YAML::load(database_yml)
27
34
  adapter = config[rails_env]["adapter"]
28
35
  database = config[rails_env]["database"]
29
36
  db_username = config[rails_env]["username"]
@@ -53,6 +60,7 @@ Capistrano::Configuration.instance.load do
53
60
  #load 'deploy/assets'
54
61
  namespace :auto do
55
62
  task :run do
63
+ bundle.install
56
64
  if exists?(:assets) && fetch(:assets) == true
57
65
  assets.precompile
58
66
  end
@@ -60,7 +68,6 @@ Capistrano::Configuration.instance.load do
60
68
  if exists?(:sphinx) && fetch(:sphinx) == true
61
69
  sphinx.symlink
62
70
  end
63
- bundle.install
64
71
  if exists?(:auto_migrate) && fetch(:auto_migrate) == true
65
72
  db.migrate
66
73
  end
@@ -1,3 +1,3 @@
1
1
  module Capobvious
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capobvious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70231015892560 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70231015892560
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  description: Capfile that we use every day
26
31
  email:
27
32
  - donotsendhere@gmail.com
@@ -58,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
63
  version: '0'
59
64
  requirements: []
60
65
  rubyforge_project: capobvious
61
- rubygems_version: 1.8.15
66
+ rubygems_version: 1.8.19
62
67
  signing_key:
63
68
  specification_version: 3
64
69
  summary: Cap recipes