cogy 0.2.0 → 0.2.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: 18759faae517b4afcb5f2f133defd44078b37139
4
- data.tar.gz: 23245b995cabda4b944844f5bbac83c4101ceafc
3
+ metadata.gz: 1faf81c2609b206d60d98e48f243dc56f76e4862
4
+ data.tar.gz: 2931c87a90991bdb9d78632b847afb0645a5af05
5
5
  SHA512:
6
- metadata.gz: 1934850a9fd090ca2f5917b1528b3e8f7b81274c80e5f05d71835af8f77a74993a45a2d9327f8b49ed737911fbfb38c0de4e5c791306bf49e6f6126cdbed6be7
7
- data.tar.gz: 04fedae28608564a6983d5e869d98d38d5c1cabd7e1cb91c131d3ea4c0512c180d481374aaadf1abd3f66cd7bc0e562d210bd7bcc47e1f5a0584bb4e099c3fae
6
+ metadata.gz: 74f80197ab55e9d9a22f3a12d210584055edcd6a6faec3e7bf928125c73d06c59e108486c3c2f4ed2b38c18a2e96a2365fed8e32a759badc92184cffa504b618
7
+ data.tar.gz: de2abb4b92d7994d5f0c05ac45ee94b885b239a830290a275a0550d086851cf0bda82f16e0ea5206bb3e8a9ee3df432e5d824eafa8670f8752016cd9127071db
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.2.1 (2016-11-28)
6
+
7
+ ### Changed
8
+
9
+ - Capistrano 2 task is no longer hooked automatically ([65353](https://github.com/skroutz/cogy/commit/653532b1d673c64344f4e652044273224a2b005f))
10
+
5
11
  ## 0.2.0 (2016-11-28)
6
12
 
7
13
  ### Added
data/README.md CHANGED
@@ -339,8 +339,12 @@ It can be overriden in the application by creating a view in
339
339
 
340
340
  ## Deployment
341
341
 
342
- Cogy provides the `cogy:notify_cog` task for Capistrano. The following options
343
- need to be set:
342
+ Cogy provides the `cogy:notify_cog` task for Capistrano. This task should run
343
+ *after* the application server is respawned/restarted, so that the new commands
344
+ are picked up. In Capistrano 2 for example, it should run after
345
+ `deploy:restart`.
346
+
347
+ The following options need to be set:
344
348
 
345
349
  * `cogy_release_trigger_url`: This is the URL of the Cog Trigger that will
346
350
  install the newly deployed bundle (ie. `!cogy:install`).
@@ -362,9 +366,9 @@ require "cogy/capistrano"
362
366
 
363
367
  set :cogy_release_trigger_url, "<TRIGGER-INVOCATION-URL>"
364
368
  set :cogy_endpoint, "<COGY-MOUNT-POINT>"
365
- ```
366
369
 
367
- The `cogy:notify_cog` task is automatically hooked after `deploy:restart`.
370
+ after "deploy:restart", "cogy:notify_cog"
371
+ ```
368
372
 
369
373
  ### Capistrano 3
370
374
 
@@ -374,12 +378,15 @@ Add the following in your Capfile:
374
378
  require "cogy/capistrano"
375
379
  ```
376
380
 
377
- The `cogy:notify_cog` task should be manually hooked after the task that
378
- restarts the application. For example:
381
+ Then configure the task and hook it:
379
382
 
380
383
  ```ruby
381
384
  # in config/deploy.rb
382
- after "deploy:restart_app", "cogy:notify_cog"
385
+
386
+ set :cogy_release_trigger_url, "<TRIGGER-INVOCATION-URL>"
387
+ set :cogy_endpoint, "<COGY-MOUNT-POINT>"
388
+
389
+ after "<app-restart-task>", "cogy:notify_cog"
383
390
  ```
384
391
 
385
392
  ## Development
@@ -9,7 +9,5 @@ else
9
9
  _cset(:cogy_trigger_timeout) { nil }
10
10
 
11
11
  load File.expand_path("../capistrano/cogy.rake", __FILE__)
12
-
13
- after "deploy:restart", "cogy:notify_cog"
14
12
  end
15
13
  end
data/lib/cogy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cogy
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "0.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cogy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agis Anastasopoulos