capedia 0.0.7 → 0.0.8
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.
- data/lib/capedia.rb +1 -1
- data/lib/capedia/{bundler_install.rb → bundler.rb} +2 -4
- data/lib/capedia/config.rb +1 -1
- data/lib/capedia/passenger.rb +1 -1
- data/lib/capedia/rails.rb +38 -2
- metadata +7 -9
- data/lib/capedia/rails_db.rb +0 -23
- data/lib/capedia/rails_gems_install.rb +0 -18
data/lib/capedia.rb
CHANGED
@@ -2,17 +2,15 @@ Capistrano::Configuration.instance.load do
|
|
2
2
|
|
3
3
|
namespace :deploy do
|
4
4
|
|
5
|
-
namespace :
|
5
|
+
namespace :bundler do
|
6
6
|
|
7
7
|
desc 'Installs all gems for the current release (uses bundler)'
|
8
8
|
task :install, :except => { :no_release => true } do
|
9
|
-
run "cd #{current_path}; bundle install --path $
|
9
|
+
run "cd #{current_path}; bundle install --path $BUNDLE_PATH"
|
10
10
|
end
|
11
11
|
|
12
12
|
end
|
13
13
|
|
14
14
|
end
|
15
15
|
|
16
|
-
after 'deploy:symlink', 'deploy:gems:install'
|
17
|
-
|
18
16
|
end
|
data/lib/capedia/config.rb
CHANGED
data/lib/capedia/passenger.rb
CHANGED
data/lib/capedia/rails.rb
CHANGED
@@ -1,8 +1,44 @@
|
|
1
1
|
require 'capedia/config'
|
2
2
|
require 'capedia/gems'
|
3
|
+
require 'capedia/bundler'
|
4
|
+
require 'capedia/passenger'
|
3
5
|
|
4
6
|
Capistrano::Configuration.instance.load do
|
5
|
-
|
6
|
-
|
7
|
+
|
8
|
+
namespace :deploy do
|
9
|
+
|
10
|
+
namespace :gems do
|
11
|
+
|
12
|
+
desc 'Installs all gems for the current release'
|
13
|
+
task :install, :except => { :no_release => true } do
|
14
|
+
if fetch(:bundler, false)
|
15
|
+
deploy.bundler.install
|
16
|
+
else
|
17
|
+
run "cd #{current_path}; rake gems:install"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
namespace :db do
|
24
|
+
|
25
|
+
desc 'Creates the database on the target server if createdb is passed to cap deploy.'
|
26
|
+
task :create, :except => { :no_release => true } do
|
27
|
+
run "cd #{current_path}; rake db:create RAILS_ENV=#{ fetch( :stage ) }"
|
28
|
+
end
|
29
|
+
|
30
|
+
task :create?, :except => { :no_release => true } do
|
31
|
+
# If cap deploy -S createdb=true - create the database on the target server.
|
32
|
+
deploy.db.create if fetch( :createdb, false )
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
after 'deploy:symlink', 'deploy:gems:install'
|
40
|
+
after 'deploy:gems:install', 'deploy:db:create?'
|
41
|
+
after 'deploy:db:create?', 'deploy:migrate'
|
42
|
+
|
7
43
|
after 'deploy:restart', 'deploy:cleanup'
|
8
44
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capedia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 15
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Wilson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-11 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -29,14 +29,12 @@ extra_rdoc_files: []
|
|
29
29
|
|
30
30
|
files:
|
31
31
|
- lib/capedia/active_messaging.rb
|
32
|
-
- lib/capedia/
|
32
|
+
- lib/capedia/bundler.rb
|
33
33
|
- lib/capedia/config.rb
|
34
34
|
- lib/capedia/crontab.rb
|
35
35
|
- lib/capedia/gems.rb
|
36
36
|
- lib/capedia/passenger.rb
|
37
37
|
- lib/capedia/rails.rb
|
38
|
-
- lib/capedia/rails_db.rb
|
39
|
-
- lib/capedia/rails_gems_install.rb
|
40
38
|
- lib/capedia.rb
|
41
39
|
- lib/Rakefile
|
42
40
|
- lib/test/jeff_test.rb
|
@@ -71,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
69
|
requirements: []
|
72
70
|
|
73
71
|
rubyforge_project: ""
|
74
|
-
rubygems_version: 1.
|
72
|
+
rubygems_version: 1.3.7
|
75
73
|
signing_key:
|
76
74
|
specification_version: 3
|
77
75
|
summary: Common capistrano plugins and recipes
|
data/lib/capedia/rails_db.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
Capistrano::Configuration.instance.load do | configuration |
|
2
|
-
|
3
|
-
namespace :deploy do
|
4
|
-
|
5
|
-
namespace :db do
|
6
|
-
|
7
|
-
desc 'Creates the database on the target server if createdb is passed to cap deploy.'
|
8
|
-
task :create, :except => { :no_release => true } do
|
9
|
-
# If cap deploy -S createdb=true is set create the database on the target server.
|
10
|
-
run "cd #{current_path}; rake db:create RAILS_ENV=#{ fetch( :stage ) }"
|
11
|
-
end
|
12
|
-
|
13
|
-
task :create?, :except => { :no_release => true } do
|
14
|
-
deploy.db.create if fetch( :createdb, false ) == true
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
|
21
|
-
after 'deploy:symlink', 'deploy:gems:install'
|
22
|
-
|
23
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
Capistrano::Configuration.instance.load do
|
2
|
-
|
3
|
-
namespace :deploy do
|
4
|
-
|
5
|
-
namespace :gems do
|
6
|
-
|
7
|
-
desc 'Installs all gems for the current release (uses rake gems:install)'
|
8
|
-
task :install, :except => { :no_release => true } do
|
9
|
-
run "cd #{current_path}; rake gems:install"
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
after 'deploy:symlink', 'deploy:gems:install'
|
17
|
-
|
18
|
-
end
|