capistrano3-foreman 0.2.0 → 0.2.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.
- checksums.yaml +4 -4
- data/README.md +19 -4
- data/lib/capistrano-foreman.rb +1 -1
- data/lib/capistrano/tasks/foreman.cap +10 -10
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8dd7c562628a683d8003d97a074043536e3cd3d7
|
|
4
|
+
data.tar.gz: f265f90d437701a1037665626ebda814a07174cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e85ebcd023d535ec1509c12c7600b5e645d044958cbf25a6754540cd0c1a3440dbdaa1937638a696d7f02be8b3dac88d3ac254c469054a9dc94174a84e4ad9b
|
|
7
|
+
data.tar.gz: e93be7dd5ee1205b7533afdfcc1b519e70b8a90cdf363dd248eedf9567452ae7fed16881e0afeb607ec90777e5128642cde46bf2a5d14759b27f2a42f0770193
|
data/README.md
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# Capistrano::Foreman
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Capistrano V3 for foreman
|
|
4
|
+
|
|
5
|
+
## WIP
|
|
6
|
+
|
|
7
|
+
There be dragons, proceed at your own risk.
|
|
4
8
|
|
|
5
9
|
## Installation
|
|
6
10
|
|
|
7
11
|
Add this line to your application's Gemfile:
|
|
8
12
|
|
|
9
|
-
gem '
|
|
13
|
+
gem 'capistrano3-foreman'
|
|
10
14
|
|
|
11
15
|
And then execute:
|
|
12
16
|
|
|
@@ -14,11 +18,22 @@ And then execute:
|
|
|
14
18
|
|
|
15
19
|
Or install it yourself as:
|
|
16
20
|
|
|
17
|
-
$ gem install
|
|
21
|
+
$ gem install capistrano3-foreman
|
|
18
22
|
|
|
19
23
|
## Usage
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
Require in Capfile to use the default task:
|
|
26
|
+
|
|
27
|
+
require 'capistrano/foreman'
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
**Export Procfile to upstart**
|
|
31
|
+
|
|
32
|
+
This task will be run before `deploy:restart` as part of Capistrano's default deploy, or can be run in isolation with:
|
|
33
|
+
|
|
34
|
+
cap production foreman:export
|
|
35
|
+
|
|
36
|
+
|
|
22
37
|
|
|
23
38
|
## Contributing
|
|
24
39
|
|
data/lib/capistrano-foreman.rb
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
namespace :foreman do
|
|
2
2
|
desc 'Export the Procfile to Ubuntu upstart scripts'
|
|
3
3
|
task :export do
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
# end
|
|
13
|
-
#end
|
|
4
|
+
on roles(:app) do |host|
|
|
5
|
+
log_path = shared_path.join('log')
|
|
6
|
+
within release_path do
|
|
7
|
+
as :root do
|
|
8
|
+
execute :bundle, "exec foreman export upstart /etc/init -a #{fetch(:application)} -u #{host.user} -l #{log_path}"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
14
12
|
end
|
|
15
13
|
|
|
16
14
|
desc 'Start the application services'
|
|
@@ -39,4 +37,6 @@ namespace :foreman do
|
|
|
39
37
|
end
|
|
40
38
|
end
|
|
41
39
|
end
|
|
40
|
+
|
|
41
|
+
before 'deploy:publishing', 'foreman:export'
|
|
42
42
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano3-foreman
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stefan Surzycki
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-01-
|
|
11
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
version: '0'
|
|
104
104
|
requirements: []
|
|
105
105
|
rubyforge_project:
|
|
106
|
-
rubygems_version: 2.0.
|
|
106
|
+
rubygems_version: 2.0.3
|
|
107
107
|
signing_key:
|
|
108
108
|
specification_version: 4
|
|
109
109
|
summary: Foreman support for Capistrano 3.x
|