matross 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/matross/foreman.rb +4 -2
- data/lib/matross/version.rb +1 -1
- metadata +2 -3
data/README.md
CHANGED
@@ -56,6 +56,8 @@ If there are any environment variables that you want to use, just set them in a
|
|
56
56
|
CUSTOM_TASK_ENV=boost
|
57
57
|
```
|
58
58
|
|
59
|
+
If you require different values for these environment variables across deployment stages, define them separately in `.env-#{stage}` files, for example `.env-production`.
|
60
|
+
|
59
61
|
## Recipes
|
60
62
|
|
61
63
|
### Foreman
|
data/lib/matross/foreman.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
dep_included? 'foreman'
|
2
2
|
|
3
3
|
_cset(:foreman_user) { user }
|
4
|
-
_cset :foreman_bin,
|
4
|
+
_cset :foreman_bin, 'bundle exec foreman'
|
5
5
|
_cset :foreman_procs, {}
|
6
|
+
_cset :rails_env, ''
|
6
7
|
|
7
8
|
namespace :foreman do
|
8
9
|
|
@@ -21,7 +22,8 @@ namespace :foreman do
|
|
21
22
|
done;
|
22
23
|
rm -f #{shared_path}/Procfile.*;
|
23
24
|
cat <(echo \"RAILS_ENV=#{rails_env.to_s.shellescape}\") \
|
24
|
-
$(test -f #{current_path}/.env && echo \"$_\")
|
25
|
+
$(test -f #{current_path}/.env && echo \"$_\") \
|
26
|
+
$(test -f #{current_path}/.env-#{stage} && echo \"$_\") > \
|
25
27
|
#{shared_path}/.env-matross;
|
26
28
|
EOF
|
27
29
|
run cmd, shell: "/bin/bash"
|
data/lib/matross/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matross
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-12-
|
13
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -124,4 +124,3 @@ signing_key:
|
|
124
124
|
specification_version: 3
|
125
125
|
summary: Our collection of opnionated Capistrano recipes
|
126
126
|
test_files: []
|
127
|
-
has_rdoc:
|