capistrano-passenger-restart 0.1.0 → 0.1.1

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: 5419534c81fb1b24b6587e116efde2bba43db03c
4
- data.tar.gz: b51cbe31a78c2d63c9e92d18e1780590ff49234c
3
+ metadata.gz: 95490a637f7789da9ac4d739ad484f46645b3702
4
+ data.tar.gz: 03a6b27b1af65d0409488675f4b3cf034c6a3279
5
5
  SHA512:
6
- metadata.gz: e1c8a0a113c81067f492ab85613a524d29c7854c57174c427942dcb8f8478c24948d2dbacf56362548e315bb33b34b27e7426f8b880c402cf28c3d40f438e1cb
7
- data.tar.gz: c1f188cf21870dfdf345fee467c01f1bc67a45d5c362300260434b8b56b2a4a4973abea06afb0d6af216aeebf56ba369670ff95f838b71b9b0f7b5e221c6b9e0
6
+ metadata.gz: 4432575e60cd2a67d20e4abe1895f2e0c607fc76f45a982142503448451d4961675d323145e2eef4b6f5b17fbbf9ea1bf4f506824234cd3e35c3467f81213182
7
+ data.tar.gz: 57436d521fa15ffe3b23aacdf19c800f818115b4cda029644dd63ed3dcc52b42ac91ab3726aceda9571533ffc881088e8c64e088a5ad571cc0c7e986440256d2
data/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # Capistrano::Passenger::Restart
2
+ [![Gem Version](https://badge.fury.io/rb/capistrano-passenger-restart.svg)](https://badge.fury.io/rb/capistrano-passenger-restart)
2
3
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/capistrano/passenger/restart`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
4
+ Restart Passenger support for Capistrano v3
6
5
 
7
6
  ## Installation
8
7
 
9
8
  Add this line to your application's Gemfile:
10
9
 
11
10
  ```ruby
11
+ gem 'capistrano', '~> 3.0'
12
12
  gem 'capistrano-passenger-restart'
13
13
  ```
14
14
 
@@ -16,19 +16,32 @@ And then execute:
16
16
 
17
17
  $ bundle
18
18
 
19
- Or install it yourself as:
19
+ ## Usage
20
20
 
21
- $ gem install capistrano-passenger-restart
21
+ Require in Capfile to use the default task:
22
22
 
23
- ## Usage
23
+ ```ruby
24
+ # Capfile
25
+ require 'capistrano/passenger/restart'
26
+ ```
24
27
 
25
- TODO: Write usage instructions here
28
+ Use task for restart Passenger in your deploy configuration:
26
29
 
27
- ## Development
30
+ ```ruby
31
+ # config/deploy.rb
32
+ namespace :deploy do
33
+ after :finishing, :restart
34
+
35
+ task :restart do
36
+ on roles(:app) do
37
+ invoke 'passenger:restart'
38
+ end
39
+ end
40
+ end
41
+ ```
28
42
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
43
+ And you should be good to go!
30
44
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
45
 
33
46
  ## Contributing
34
47
 
@@ -38,4 +51,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
38
51
  ## License
39
52
 
40
53
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Passenger
3
3
  module Restart
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-passenger-restart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Bondarenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-02 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano