capistrano3-foreman 0.2.3 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dd7c562628a683d8003d97a074043536e3cd3d7
4
- data.tar.gz: f265f90d437701a1037665626ebda814a07174cf
3
+ metadata.gz: 3517663e2b4d7eab56baca47ca98cee327ea7ce7
4
+ data.tar.gz: cc9981bb5c43a1e36e1d3e8ee0e7905a3e18106a
5
5
  SHA512:
6
- metadata.gz: 1e85ebcd023d535ec1509c12c7600b5e645d044958cbf25a6754540cd0c1a3440dbdaa1937638a696d7f02be8b3dac88d3ac254c469054a9dc94174a84e4ad9b
7
- data.tar.gz: e93be7dd5ee1205b7533afdfcc1b519e70b8a90cdf363dd248eedf9567452ae7fed16881e0afeb607ec90777e5128642cde46bf2a5d14759b27f2a42f0770193
6
+ metadata.gz: 1162411c277019a2f506dcaaf3f6ed57546ed7ee01866985d83a9c6fb849d3cb208aba6f0a052c8121ce1ec98ff094e3fb6155ec80a888fcab82774bbd90483a
7
+ data.tar.gz: 47a76f695e45cbe4b1b2edddc978cea83a89e91087b68efa439145667366df520ff56f35f33042eed61d85de5020e7e71dd8d1dc84d3d3430629e5a5846504ad
data/README.md CHANGED
@@ -27,13 +27,27 @@ Require in Capfile to use the default task:
27
27
  require 'capistrano/foreman'
28
28
 
29
29
 
30
- **Export Procfile to upstart**
30
+ ###Export Procfile to upstart###
31
31
 
32
32
  This task will be run before `deploy:restart` as part of Capistrano's default deploy, or can be run in isolation with:
33
33
 
34
34
  cap production foreman:export
35
35
 
36
+ **NOTE**
36
37
 
38
+ In order for foreman to export to upstart your deploy user must have `sudoer` privileges
39
+
40
+
41
+ ###Options##
42
+
43
+ Custom ENVIRONMENT variables for foreman [(see here)](http://ddollar.github.io/foreman/#ENVIRONMENT).
44
+
45
+ set :foreman_env, '/remote/path/to/your.env' # Default none
46
+
47
+
48
+ ## Build your own mini Heroku ##
49
+
50
+ Coming soon
37
51
 
38
52
  ## Contributing
39
53
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Foreman
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.5'
4
4
  end
5
5
  end
@@ -2,10 +2,12 @@ namespace :foreman do
2
2
  desc 'Export the Procfile to Ubuntu upstart scripts'
3
3
  task :export do
4
4
  on roles(:app) do |host|
5
- log_path = shared_path.join('log')
5
+ log_path = shared_path.join('log')
6
+ environment_path = fetch(:foreman_env)
7
+
6
8
  within release_path do
7
9
  as :root do
8
- execute :bundle, "exec foreman export upstart /etc/init -a #{fetch(:application)} -u #{host.user} -l #{log_path}"
10
+ execute :bundle, "exec foreman export upstart /etc/init -a #{fetch(:application)} -u #{host.user} -l #{log_path} -e #{environment_path}"
9
11
  end
10
12
  end
11
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-foreman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Surzycki