producer-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/producer/rails/version.rb +1 -1
- data/lib/producer/rails.rb +5 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94b7712d7c5ae3b7fa48abc2cbdc166450eb5770
|
4
|
+
data.tar.gz: 48f8c08be28e5ddc9f228d31e33956bb12a584f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6353789487855c93c42ff28173ab284b8e5cbb9e2a0ddfc8a00d14c4eed5c95b793e41128bf17e18c833abd71cfe2f8afbe1169099f8d549212a314214543c79
|
7
|
+
data.tar.gz: 26f5e9f09afe0e247ce7d26be53823368a45d90851eaddfc812cfc55d294e90ec1a80ca85d90a9dcdd0ed19b808037600d34171a2388109b9ff9fe48e21ebb85
|
data/lib/producer/rails.rb
CHANGED
@@ -15,7 +15,6 @@ module Producer
|
|
15
15
|
|
16
16
|
define_macro :deploy do
|
17
17
|
app_path = get :app_path
|
18
|
-
$app_path = app_path
|
19
18
|
|
20
19
|
if ENV.key? 'DEPLOY_INIT'
|
21
20
|
ensure_dir app_path, 0701
|
@@ -62,14 +61,13 @@ module Producer
|
|
62
61
|
end
|
63
62
|
|
64
63
|
define_macro :app_init do |path, dirs: []|
|
65
|
-
|
66
|
-
|
67
|
-
end
|
64
|
+
run_dir = "#{path}/tmp/run"
|
65
|
+
dirs.map! { |e| File.join(path, e) }
|
68
66
|
|
69
|
-
condition { no_dir?
|
67
|
+
condition { no_dir? run_dir }
|
70
68
|
|
71
|
-
|
72
|
-
|
69
|
+
mkdir run_dir, 0701
|
70
|
+
dirs.each { |e| mkdir e, 0700 }
|
73
71
|
end
|
74
72
|
|
75
73
|
define_macro :db_config do |path|
|