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 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
@@ -1,8 +1,9 @@
1
1
  dep_included? 'foreman'
2
2
 
3
3
  _cset(:foreman_user) { user }
4
- _cset :foreman_bin, "bundle exec foreman"
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"
@@ -1,3 +1,3 @@
1
1
  module Matross
2
- VERSION = "0.4.2"
2
+ VERSION = "0.5.0"
3
3
  end
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.2
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-09 00:00:00.000000000 Z
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: