capistrano3-foreman 0.2.0 → 0.2.3

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: 5ee6180a79d052ef1841daab6b9ecf6f54bad315
4
- data.tar.gz: 361a85fe36bbb5d57272b40ff775dda705c99104
3
+ metadata.gz: 8dd7c562628a683d8003d97a074043536e3cd3d7
4
+ data.tar.gz: f265f90d437701a1037665626ebda814a07174cf
5
5
  SHA512:
6
- metadata.gz: 54cbe2aeac10e61e53c3e5c986be545ec0a329cd083c0cde09cadfc10ae719e4e09bd2f01bb9766b8e696bfd5c28b4a8f4abf7cdf726a63b95b888d89b7e2d6e
7
- data.tar.gz: c92c0ef8c219ad4c36f868c2c60896406ed5501a562a9b5cd94af3e010ec52f5f267f5ef925d7ade695334b30ccadb8d13f06d635cf99c3e5e24cb08d20363c3
6
+ metadata.gz: 1e85ebcd023d535ec1509c12c7600b5e645d044958cbf25a6754540cd0c1a3440dbdaa1937638a696d7f02be8b3dac88d3ac254c469054a9dc94174a84e4ad9b
7
+ data.tar.gz: e93be7dd5ee1205b7533afdfcc1b519e70b8a90cdf363dd248eedf9567452ae7fed16881e0afeb607ec90777e5128642cde46bf2a5d14759b27f2a42f0770193
data/README.md CHANGED
@@ -1,12 +1,16 @@
1
1
  # Capistrano::Foreman
2
2
 
3
- TODO: Write a gem description
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 'capistrano-foreman'
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 capistrano-foreman
21
+ $ gem install capistrano3-foreman
18
22
 
19
23
  ## Usage
20
24
 
21
- TODO: Write usage instructions here
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
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Foreman
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.3'
4
4
  end
5
5
  end
@@ -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
- puts "hu"
5
- #on roles(:app) do |host|
6
- # within current_path do
7
- # as :root do
8
- # execute :mkdir, "-p #{fetch(:log_directory)}"
9
- # execute :chown, "-R #{host.user}: #{fetch(:log_directory)}"
10
- # execute :bundle, "exec foreman export upstart /etc/init -a #{fetch(:application)} -u #{host.user} -l #{fetch(:log_directory)}"
11
- # end
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.0
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-02 00:00:00.000000000 Z
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.14
106
+ rubygems_version: 2.0.3
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Foreman support for Capistrano 3.x