soprano 0.20 → 0.30
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +7 -16
- data/lib/soprano/version.rb +1 -1
- data/recipes/daemon_strategy.rb +1 -1
- data/recipes/db.rb +1 -0
- metadata +5 -9
- data/recipes/gems.rb +0 -23
- data/recipes/whenever.rb +0 -17
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Soprano
|
2
2
|
|
3
|
+
[![The Sopranos](http://i.minus.com/idGXKU.jpeg)](http://www.imdb.com/title/tt0141842/)
|
4
|
+
|
3
5
|
Soprano is the set of Capistrano recipes that help me to deploy my
|
4
6
|
applications.
|
5
7
|
|
@@ -14,7 +16,7 @@ been borrowed from its sources.
|
|
14
16
|
|
15
17
|
For Rails 3 add to your `Gemfile`:
|
16
18
|
|
17
|
-
gem 'soprano', :require => false
|
19
|
+
gem 'soprano', :require => false
|
18
20
|
|
19
21
|
## Example usage
|
20
22
|
|
@@ -31,25 +33,14 @@ To start using Soprano you just need to add `require "soprano"` to your
|
|
31
33
|
|
32
34
|
## Features
|
33
35
|
|
34
|
-
|
35
|
-
|
36
|
-
Using [whenever](https://github.com/javan/whenever) is as easy as `set`ing `:whenever` to `true`. Just like this:
|
37
|
-
|
38
|
-
set :whenever, true
|
39
|
-
|
40
|
-
Whenever will use your application deploy path as crontab identifier.
|
41
|
-
|
42
|
-
You may wish to override the command, used to invoke whenever, e.g., to use Bundler:
|
43
|
-
|
44
|
-
set :whenever_command, 'bundle exec whenever'
|
45
|
-
|
46
|
-
Other features in process...
|
36
|
+
Readme about features in process...
|
47
37
|
|
48
38
|
## Thanks
|
49
39
|
|
50
|
-
- Jamis Buck for [Capistrano](
|
40
|
+
- Jamis Buck for [Capistrano](https://github.com/halorgium/capistrano),
|
51
41
|
- Rubaidh Ltd for their awesome
|
52
|
-
[Rubaidhstrano](http://github.com/rubaidh/rubaidhstrano)
|
42
|
+
[Rubaidhstrano](http://github.com/rubaidh/rubaidhstrano),
|
43
|
+
- Denis Barushev for [Capone](https://github.com/denis/capone).
|
53
44
|
|
54
45
|
## Copyright
|
55
46
|
|
data/lib/soprano/version.rb
CHANGED
data/recipes/daemon_strategy.rb
CHANGED
data/recipes/db.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soprano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 30
|
9
|
+
version: "0.30"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Dmitriy Kiriyenko
|
@@ -14,8 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
18
|
-
default_executable:
|
17
|
+
date: 2011-11-04 00:00:00 Z
|
19
18
|
dependencies:
|
20
19
|
- !ruby/object:Gem::Dependency
|
21
20
|
name: capistrano
|
@@ -59,12 +58,9 @@ files:
|
|
59
58
|
- recipes/db.rb
|
60
59
|
- recipes/defaults.rb
|
61
60
|
- recipes/delayed_job.rb
|
62
|
-
- recipes/gems.rb
|
63
61
|
- recipes/nginx.rb
|
64
62
|
- recipes/replicate.rb
|
65
|
-
- recipes/whenever.rb
|
66
63
|
- soprano.gemspec
|
67
|
-
has_rdoc: true
|
68
64
|
homepage: https://github.com/dmitriy-kiriyenko/soprano
|
69
65
|
licenses: []
|
70
66
|
|
@@ -94,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
90
|
requirements: []
|
95
91
|
|
96
92
|
rubyforge_project:
|
97
|
-
rubygems_version: 1.
|
93
|
+
rubygems_version: 1.8.7
|
98
94
|
signing_key:
|
99
95
|
specification_version: 3
|
100
96
|
summary: Soprano is the set of rake tasks and capistrano recipes.
|
data/recipes/gems.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
namespace :soprano do
|
2
|
-
namespace :gems do
|
3
|
-
desc <<-DESC
|
4
|
-
Install gems needed by application.
|
5
|
-
DESC
|
6
|
-
task :install, :roles => :app do
|
7
|
-
run "rake gems:install -f #{release_path}/Rakefile RAILS_ENV=#{rails_env}"
|
8
|
-
end
|
9
|
-
|
10
|
-
desc <<-DESC
|
11
|
-
Update installed gems.
|
12
|
-
DESC
|
13
|
-
task :update, :roles => :app do
|
14
|
-
sudo "gem update --no-rdoc --no-ri"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
on :load do
|
20
|
-
if fetch(:install_gems, true)
|
21
|
-
after "deploy:update_code", "soprano:gems:install"
|
22
|
-
end
|
23
|
-
end
|
data/recipes/whenever.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
namespace :soprano do
|
2
|
-
namespace :whenever do
|
3
|
-
desc <<-DESC
|
4
|
-
Update the crontab file with whenever.
|
5
|
-
DESC
|
6
|
-
task :update_crontab, :roles => :db do
|
7
|
-
whenever_command = fetch(:whenever_command, "whenever")
|
8
|
-
run "cd #{release_path} && #{whenever_command} --set environment=#{rails_env} --update-crontab #{deploy_to}"
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
on :load do
|
14
|
-
if fetch(:whenever, false)
|
15
|
-
after "deploy:symlink", "soprano:whenever:update_crontab"
|
16
|
-
end
|
17
|
-
end
|