capistrano-rails-collection 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/README.md +10 -8
- data/capistrano-rails-collection.gemspec +1 -1
- data/lib/capistrano/tasks/db.rake +7 -7
- data/lib/capistrano/tasks/general.rake +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a31af6abe5f7e5cf72abfd3b91d01770f191455e
|
|
4
|
+
data.tar.gz: 707985513e583084084566634b8bf9ed99b833fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69eb80b0aaf468083460faded77893374879f23a1090aabd57bef9059c1b725a70790afb3e5bcf063f3cdf03ce1a2842ad84b5eb2552a68412890278c1e62e36
|
|
7
|
+
data.tar.gz: dabb86968f636d550bcac502695f4545466f866e13538d6851c6183d00e6a712b314e3a55461966d33b8e0195482d69e36de68c2beed8b32b4842d73a2390993
|
data/README.md
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
# Capistrano::Rails::Collection
|
|
2
2
|
|
|
3
|
+
[](http://badge.fury.io/rb/capistrano-rails-collection)
|
|
4
|
+
|
|
3
5
|
Rails specific task collection for Capistrano v3 as extension of the official capistrano rails gem:
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
cap production rails:rake:log:clear
|
|
8
|
+
cap production rails:rake:tmp:clear
|
|
9
|
+
cap production rails:rake:db:drop
|
|
10
|
+
cap production rails:rake:db:reset
|
|
11
|
+
cap production rails:rake:db:setup
|
|
12
|
+
cap production rails:rake:db:seed
|
|
13
|
+
cap production rails:rake:db:migrate
|
|
14
|
+
cap production rails:rake:db:rollback
|
|
13
15
|
|
|
14
16
|
## Installation
|
|
15
17
|
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "capistrano-rails-collection"
|
|
7
|
-
spec.version = "0.0.
|
|
7
|
+
spec.version = "0.0.3"
|
|
8
8
|
spec.authors = ["dei79"]
|
|
9
9
|
spec.email = ["dirk.eisenberg@gmail.com"]
|
|
10
10
|
spec.description = %q{Rails specific Capistrano tasks which are not part of the official rails gem}
|
|
@@ -4,7 +4,7 @@ namespace :rails do
|
|
|
4
4
|
desc 'Drops the database to an empty state'
|
|
5
5
|
task :drop do
|
|
6
6
|
on primary :db do
|
|
7
|
-
within
|
|
7
|
+
within release_path do
|
|
8
8
|
with rails_env: fetch(:stage) do
|
|
9
9
|
execute :rake, 'db:drop'
|
|
10
10
|
end
|
|
@@ -15,7 +15,7 @@ namespace :rails do
|
|
|
15
15
|
desc 'Resets the database to an empty state'
|
|
16
16
|
task :reset do
|
|
17
17
|
on primary :db do
|
|
18
|
-
within
|
|
18
|
+
within release_path do
|
|
19
19
|
with rails_env: fetch(:stage) do
|
|
20
20
|
execute :rake, 'db:reset'
|
|
21
21
|
end
|
|
@@ -29,7 +29,7 @@ namespace :rails do
|
|
|
29
29
|
DESC
|
|
30
30
|
task :setup do
|
|
31
31
|
on primary :db do
|
|
32
|
-
within
|
|
32
|
+
within release_path do
|
|
33
33
|
with rails_env: fetch(:stage) do
|
|
34
34
|
execute :rake, 'db:setup'
|
|
35
35
|
end
|
|
@@ -40,7 +40,7 @@ namespace :rails do
|
|
|
40
40
|
desc "Load the seed data from db/seeds.rb"
|
|
41
41
|
task :seed do
|
|
42
42
|
on primary :db do
|
|
43
|
-
within
|
|
43
|
+
within release_path do
|
|
44
44
|
with rails_env: fetch(:stage) do
|
|
45
45
|
execute :rake, 'db:seed'
|
|
46
46
|
end
|
|
@@ -49,9 +49,9 @@ namespace :rails do
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
desc "Migrate the database"
|
|
52
|
-
task :
|
|
52
|
+
task :migrate do
|
|
53
53
|
on primary :db do
|
|
54
|
-
within
|
|
54
|
+
within release_path do
|
|
55
55
|
with rails_env: fetch(:stage) do
|
|
56
56
|
execute :rake, 'db:migrate'
|
|
57
57
|
end
|
|
@@ -62,7 +62,7 @@ namespace :rails do
|
|
|
62
62
|
desc "Rolls the schema back to the previous version"
|
|
63
63
|
task :rollback do
|
|
64
64
|
on primary :db do
|
|
65
|
-
within
|
|
65
|
+
within release_path do
|
|
66
66
|
with rails_env: fetch(:stage) do
|
|
67
67
|
execute :rake, 'db:rollback'
|
|
68
68
|
end
|
|
@@ -4,7 +4,7 @@ namespace :rails do
|
|
|
4
4
|
desc 'Truncates all *.log files in log/ to zero bytes'
|
|
5
5
|
task :clear do
|
|
6
6
|
on primary :db do
|
|
7
|
-
within
|
|
7
|
+
within release_path do
|
|
8
8
|
with rails_env: fetch(:stage) do
|
|
9
9
|
execute :rake, 'log:clear'
|
|
10
10
|
end
|
|
@@ -17,7 +17,7 @@ namespace :rails do
|
|
|
17
17
|
desc 'Clear session, cache, and socket files from tmp/'
|
|
18
18
|
task :clear do
|
|
19
19
|
on primary :db do
|
|
20
|
-
within
|
|
20
|
+
within release_path do
|
|
21
21
|
with rails_env: fetch(:stage) do
|
|
22
22
|
execute :rake, 'tmp:clear'
|
|
23
23
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-rails-collection
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- dei79
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano-rails
|
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
64
64
|
version: '0'
|
|
65
65
|
requirements: []
|
|
66
66
|
rubyforge_project:
|
|
67
|
-
rubygems_version: 2.
|
|
67
|
+
rubygems_version: 2.2.2
|
|
68
68
|
signing_key:
|
|
69
69
|
specification_version: 4
|
|
70
70
|
summary: Rails specific Capistrano tasks which are not part of the official rails
|