carafe 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4a7e5d60093d18eadcdf5151550524ba2811152
4
- data.tar.gz: 041a8c124e42db6e2526bc1ab6b2b581870f9f40
3
+ metadata.gz: a6ec2bc3ebbd3f0c1a68529b0f108e029f0e43f8
4
+ data.tar.gz: 5e0e6db87cbbc8381bb1be2f8a96618d3466f695
5
5
  SHA512:
6
- metadata.gz: 7571338becfac1a55944ca258178190c3fd15039a2d59b8762a4f95b11253e3affc1e19c197f4b9d4f21f8e93d8f21f0b821514c46070cbe3f3c23ebb16aabb8
7
- data.tar.gz: 5eb5e9fa216d2e7c1344d33881057153f1570dc8d198c1c62db93579bd1333eba0981417bb882e2a036cda8f5b510531af7689aeb23eeed2e75c1d31e7c384ce
6
+ metadata.gz: 0b869e379e8f0f256cc75f9145fdbda48f631fa4ed78193d8ab918bcd04cc522aad0216eefa08e2d5c9425c4471af9addacafb627fe5ef5290aa8bc33c59455a
7
+ data.tar.gz: b1cbd11ee1af0dd900086ca224962163518238ea644f9cc4e1eaa632ca5bc1e0ef9bf68713523cda8ec5523970d7ef5a7ea86625becf9c8323c00a0d7d2ac5ad
data/README.md CHANGED
@@ -1,11 +1,17 @@
1
1
  # Carafe
2
2
 
3
+ [![Hex.pm](http://img.shields.io/hexpm/v/carafe.svg)](https://hex.pm/packages/carafe)
4
+ [![Build status](https://api.travis-ci.org/schnittchen/carafe.svg)](https://travis-ci.org/schnittchen/carafe)
5
+ [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/schnittchen/carafe/master/LICENSE.md)
6
+
3
7
  This is a tool for deploying Elixir applications, built upon [capistrano](http://capistranorb.com/).
4
8
 
5
9
  Carafe requires git for hosting the source repository. It depends on
6
10
  [Edeliver](https://github.com/boldpoker/edeliver) for a few parts that are not handled in
7
11
  Carafe yet. Release building requires [Distillery](https://github.com/bitwalker/distillery).
8
12
 
13
+ ![Screenshot](https://github.com/schnittchen/carafe/blob/master/deploy.gif)
14
+
9
15
  Currently, only full releases, not upgrades, are supported, and archives are
10
16
  kept locally.
11
17
 
@@ -38,11 +44,14 @@ o vendor/bundle
38
44
  + config/deploy/production.rb
39
45
  ```
40
46
 
41
- Files behind `o` should be gitignored, the others checked in. Add the following line to the `Capfile`:
42
-
47
+ Files behind `o` should be gitignored, the others checked in. In your `Capdfile`, add the following line
43
48
  ```
44
49
  require "carafe"
45
50
  ```
51
+ below the line
52
+ ```
53
+ require "capistrano/deploy"
54
+ ```
46
55
 
47
56
  ### Prerequisites, Elixir side
48
57
 
@@ -82,8 +82,9 @@ task "node:full_restart" => ["node:stop-if-running", "node:start"] do
82
82
  # see https://github.com/boldpoker/edeliver/blob/0582a32546edca8e6b047c956e3dd4ef74b09ac1/libexec/erlang#L856
83
83
  on Carafe::Node.hosts do |host|
84
84
  within Carafe::Node.app_path do
85
+ # Don't know why the additional `cd` is needed here.
85
86
  execute <<-EOS
86
- for i in {1..10}; do bin/#{script} ping && break || true; sleep 1; done
87
+ cd #{Carafe::Node.app_path}; for i in {1..10}; do bin/#{script} ping && break || true; sleep 1; done
87
88
  EOS
88
89
 
89
90
  execute "bin/#{script}", <<-EOS
data/lib/carafe.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  require "carafe/version"
2
2
 
3
+ # We advise users to build their own "deploy" top level task.
4
+ # We need to clear capistrano's defaults before this can work (cf. README.md)
5
+ Rake::Task["deploy"].clear
6
+
3
7
  load File.expand_path("../capistrano/tasks/local.rake", __FILE__)
4
8
  load File.expand_path("../capistrano/tasks/buildhost.rake", __FILE__)
5
9
  load File.expand_path("../capistrano/tasks/node.rake", __FILE__)
@@ -1,3 +1,3 @@
1
1
  module Carafe
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carafe
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
  - Thomas Stratmann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2017-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,9 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  version: '0'
73
73
  requirements: []
74
74
  rubyforge_project:
75
- rubygems_version: 2.5.2
75
+ rubygems_version: 2.5.1
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: Deployment for Elixir applications, using capistrano
79
79
  test_files: []
80
- has_rdoc: