capistrano-postgresql 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86fb4bf23488e11c1621ea0220f0f9de556bd54b
4
- data.tar.gz: fb80400a70f99e7235f18e154ebe413903716f97
3
+ metadata.gz: f2168ffbd411cc717cc481467336c5ddf60f6b14
4
+ data.tar.gz: 111fc809e5d5378dd771d9a873732ba2f45e607c
5
5
  SHA512:
6
- metadata.gz: 2a26868b035dc682b3a9a73c332b0837c91f8ef5738d580a20e13df409204005a9bb5ff3b347ad05183b3abeebc1128f43149bd26541bfd129aa212975956829
7
- data.tar.gz: a109426f8a310440d3827c5938883e9688f2dcb9a15e10ced05ea690ad52b0a7d099aa2615b9df3a13b8f870dde89d936c68d26ba4e389727a3b59db5d3e14e9
6
+ metadata.gz: 27eaa6cd688543c31c9699bf2e24bb4915c431044ae4f6123248e5fdad8e2ba5acbe8286a079b727cf9509bf2c153bac55cc0dc13c92b9495599fadcc729ea42
7
+ data.tar.gz: 17f848b96ef6747e7a68001d8b8b1cbe5fcb67e1c6df233a527622485b8e37d73038fccc7dddbdbc4367371ba43b8496d783fcee7bf001614865afed4f8acacc
@@ -1,3 +1,5 @@
1
+ ### v3.0.0, 2014-04-11
2
+ - all the work is moved to the `setup` task
1
3
  ### v2.0.0, 2014-03-30
2
4
  - shorten variable names: postgresql -> pg
3
5
  - better helpers module separation
data/README.md CHANGED
@@ -25,7 +25,7 @@ Put the following in your application's `Gemfile`:
25
25
 
26
26
  group :development do
27
27
  gem 'capistrano', '~> 3.1'
28
- gem 'capistrano-postgresql'
28
+ gem 'capistrano-postgresql', '~> 3.0'
29
29
  end
30
30
 
31
31
  Then:
@@ -39,9 +39,15 @@ the following in `Capfile` file:
39
39
 
40
40
  require 'capistrano/postgresql'
41
41
 
42
- And deploy:
42
+ Make sure the `deploy_to` path exists and has the right privileges on the
43
+ server (i.e. `/var/www/myapp`).<br/>
44
+ Or just install
45
+ [capistrano-safe-deploy-to](https://github.com/bruno-/capistrano-safe-deploy-to)
46
+ plugin and don't think about it.
43
47
 
44
- $ bundle exec cap production deploy
48
+ To setup the server, run:
49
+
50
+ $ bundle exec cap production setup
45
51
 
46
52
  Easy, right?
47
53
 
@@ -52,7 +58,7 @@ Check below to see what happens in the background.
52
58
  Check here for the full capistrano deployment flow
53
59
  [http://capistranorb.com/documentation/getting-started/flow/](http://capistranorb.com/documentation/getting-started/flow/).
54
60
 
55
- The following tasks run automatically after `deploy:started` task:
61
+ The following tasks run during the `setup` task:
56
62
 
57
63
  * `postgresql:create_db_user`<br/>
58
64
  creates a postgresql user. Password for the user is automatically generated and
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Postgresql
3
- VERSION = "2.0.0"
3
+ VERSION = "3.0.0"
4
4
  end
5
5
  end
@@ -70,9 +70,12 @@ namespace :postgresql do
70
70
  set :linked_files, fetch(:linked_files, []).push('config/database.yml')
71
71
  end
72
72
 
73
- after 'deploy:started', 'postgresql:create_db_user'
74
- after 'deploy:started', 'postgresql:create_database'
75
- after 'deploy:started', 'postgresql:generate_database_yml'
76
73
  after 'deploy:started', 'postgresql:database_yml_symlink'
74
+ end
77
75
 
76
+ desc 'Server setup tasks'
77
+ task :setup do
78
+ invoke 'postgresql:create_db_user'
79
+ invoke 'postgresql:create_database'
80
+ invoke 'postgresql:generate_database_yml'
78
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-postgresql
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Sutic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-30 00:00:00.000000000 Z
11
+ date: 2014-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano