screcipes 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.
data/lib/screcipes/capistrano.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
+
require 'capistrano_colors'
|
2
|
+
|
3
|
+
require 'screcipes/capistrano/defaults'
|
1
4
|
require 'screcipes/capistrano/deploy'
|
2
5
|
require 'screcipes/capistrano/rvm'
|
3
|
-
require 'screcipes/capistrano/assets'
|
4
6
|
require 'screcipes/capistrano/sync'
|
5
7
|
require 'screcipes/capistrano/kickstart'
|
6
|
-
require 'screcipes/capistrano/defaults'
|
7
8
|
require 'screcipes/capistrano/symlinks'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
|
-
|
2
|
+
|
3
3
|
_cset :scm, :git
|
4
4
|
_cset :spinner, false
|
5
5
|
_cset :git_enable_submodules, 1
|
@@ -7,10 +7,22 @@ Capistrano::Configuration.instance.load do
|
|
7
7
|
_cset :copy_exclude, ["**/.git"]
|
8
8
|
|
9
9
|
_cset :sync_backups, 1
|
10
|
-
_cset :keep_releases, 5
|
11
10
|
|
12
11
|
_cset :use_sudo, false
|
13
12
|
_cset :runner, 'root'
|
14
13
|
_cset :apache_init_script, "/etc/init.d/apache2"
|
15
14
|
|
15
|
+
_cset :default_stage, 'staging'
|
16
|
+
|
17
|
+
extensions = Array(fetch(:extensions))
|
18
|
+
|
19
|
+
if extensions.include? :bundler
|
20
|
+
require 'bundler/capistrano'
|
21
|
+
_cset :whenever_command, 'bundle exec whenever'
|
22
|
+
end
|
23
|
+
|
24
|
+
if extensions.include? :whenever
|
25
|
+
require 'whenever/capistrano'
|
26
|
+
end
|
27
|
+
|
16
28
|
end
|
@@ -20,6 +20,11 @@ Capistrano::Configuration.instance.load do
|
|
20
20
|
dirs += shared_children.map { |d| File.join(shared_path, d) }
|
21
21
|
run "#{try_sudo} mkdir -p #{dirs.join(' ')} && #{try_sudo} chmod g+w #{dirs.join(' ')}"
|
22
22
|
run "git clone #{repository} #{current_path}"
|
23
|
+
|
24
|
+
if File.exists? "config/database.sample.yml"
|
25
|
+
run "mkdir #{shared_path}/config"
|
26
|
+
run "cp #{release_path}/config/database.sample.yml #{shared_path}/config/database.yml"
|
27
|
+
end
|
23
28
|
end
|
24
29
|
|
25
30
|
task :cold do
|
@@ -2,6 +2,8 @@ Capistrano::Configuration.instance.load do
|
|
2
2
|
_cset :normal_symlinks, %w(
|
3
3
|
config/database.yml
|
4
4
|
public/assets/
|
5
|
+
log/
|
6
|
+
tmp/
|
5
7
|
)
|
6
8
|
|
7
9
|
_cset :weird_symlinks, {
|
@@ -31,4 +33,5 @@ Capistrano::Configuration.instance.load do
|
|
31
33
|
end
|
32
34
|
|
33
35
|
after "deploy:update_code", "symlinks:make"
|
36
|
+
|
34
37
|
end
|
data/lib/screcipes/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: screcipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors: []
|
13
13
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-07 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|