deployable 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/CHANGELOG.md
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
# = Directory related recipes
|
2
|
+
#
|
3
|
+
# These scripts make sure you have all the directories you need
|
4
|
+
#
|
5
|
+
# == Usage
|
6
|
+
#
|
7
|
+
# set :directories, ["dir", "dir", "dir"]
|
8
|
+
#
|
9
|
+
Capistrano::Configuration.instance(true).load do
|
10
|
+
namespace :directories do
|
11
|
+
desc "Creates all the directories in var :directories"
|
12
|
+
task :create, :roles => [:app] do
|
13
|
+
if dirs = fetch(:directories)
|
14
|
+
dirs.each do |dir|
|
15
|
+
dir = dir.call if dir.respond_to?(:call)
|
16
|
+
run "mkdir -p #{dir}"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -41,6 +41,10 @@ Capistrano::Configuration.instance(true).load do
|
|
41
41
|
require "deployable/config_files"
|
42
42
|
after "deploy:setup", "config_files:setup"
|
43
43
|
after "deploy:update_code", "config_files:install"
|
44
|
+
|
45
|
+
# Directories support
|
46
|
+
require 'deployable/directories'
|
47
|
+
after "deploy:update_code", "directories:create"
|
44
48
|
|
45
49
|
# Cleanup
|
46
50
|
after "deploy", "deploy:cleanup"
|
data/lib/deployable/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deployable
|
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
|
- Digitpaint
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- lib/deployable/bundle.rb
|
94
94
|
- lib/deployable/config_files.rb
|
95
95
|
- lib/deployable/database.rb
|
96
|
+
- lib/deployable/directories.rb
|
96
97
|
- lib/deployable/passenger.rb
|
97
98
|
- lib/deployable/passenger_standalone.rb
|
98
99
|
- lib/deployable/recipes/default_with_database.rb
|