deploy-cli 0.2.4 → 0.2.5

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Readme.md +6 -35
  3. data/bin/deploy +1 -1
  4. data/lib/deploy/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8d3b48b9a55f7de6d23279d0878765da1a43e86
4
- data.tar.gz: ac3d941865566ebdbfb2805c553e02f7c62953d0
3
+ metadata.gz: 5aa36ae8850baedbe918c8f8c4e826ff96e815c3
4
+ data.tar.gz: 74230a2dd19aae06497d3f33fac540d032d42499
5
5
  SHA512:
6
- metadata.gz: 0d8322cea80d48de105f8101f9581e257d32847fc30cc6237944aca2fc7ff4c058fee45403327829a02c6e3ba7fdd845b8d88e5a40c9871928a409f46c60a348
7
- data.tar.gz: b7daa65860485d737dce1f5894c9d8894269fc3c177bd91fc69178d3645849689b4c2494c84fec292117d639b465a4be72e89dacd92541d4b4609b964669247e
6
+ metadata.gz: c4c653af5f040ab3207e90254a995035a6d6e4bb8f35629d7de60dc2a354e8a69c8d039eed6b829ea44bbfe2eee72c3b716b9f479adcfbb3c1a24c7e033d80d9
7
+ data.tar.gz: 98d5dfdb3dceebc31c81f3e480c2ebcfdd9302fbd92d0e8652079147a94f6fb7dbb5c492add0c0e55639d11c47ca299aad2f6ebbdfb73af8e27a5f0997558766
data/Readme.md CHANGED
@@ -27,16 +27,14 @@ masse ;-)
27
27
  deploy version # Show the current version
28
28
 
29
29
 
30
- This script assume there's either a `deploy.yaml` or a `deploy.rb` file on the
31
- current directory. If not you can pass it with `--file deploy.rb`.
30
+ This script assume there's either a `deploy.yaml` file on the
31
+ current directory. If not you can pass it with `--file /path/to/deploy.yaml`.
32
32
 
33
33
 
34
34
  ### Sample yaml spec (deploy.yaml)
35
35
 
36
36
  ```yaml
37
- ### Working yaml code
38
-
39
- default: &SITE
37
+ template: &template
40
38
  user: deploy
41
39
  before:
42
40
  - echo "Started at `date`"
@@ -52,8 +50,8 @@ default: &SITE
52
50
 
53
51
 
54
52
 
55
- production:
56
- <<: *SITE
53
+ live:
54
+ <<: *template
57
55
  path: /var/www/vhosts/example.com
58
56
  branch: master
59
57
  servers:
@@ -62,37 +60,10 @@ production:
62
60
 
63
61
 
64
62
  stage:
65
- <<: *SITE
63
+ <<: *template
66
64
  branch: dev
67
65
  path: /var/www/vhosts/stage.example.com
68
66
  servers:
69
67
  - stage-01.example.com
70
68
 
71
69
  ```
72
-
73
- ### Pseudo ruby spec (deploy.rb)
74
-
75
- ```ruby
76
- ### Pseudo code for a deploy DSL
77
-
78
- stage :stage do
79
- branch "master"
80
- user "deploy"
81
- path "/var/www/vhosts/stage.example.com"
82
- servers [
83
- "web-01.example.com",
84
- "web-02.example.com",
85
- ]
86
-
87
- notify :slack do
88
- token ENV["SLACK_TOKEN"]
89
- channel "#deployments"
90
- message "#{s.user} deployed commit #{s.commit} to #{s.stage}."
91
- emoji ":rocket:"
92
- end
93
-
94
- hook :before "echo 'Started at $(date)'"
95
- hook :after "./clean-caches"
96
- hook :after "echo 'Completed at $(date)'"
97
- end
98
- ```
data/bin/deploy CHANGED
@@ -43,7 +43,7 @@ module Deploy
43
43
  return options[:file] if options[:file]
44
44
 
45
45
  files = ["deploy.yaml"]
46
- dirs = [ENV["HOME"], ".", "/etc/deploy-cli"]
46
+ dirs = [".", ENV["HOME"], "/etc/deploy-cli"]
47
47
  dirs.each do |dir|
48
48
  files.each do |file|
49
49
  path = "#{dir}/#{file}"
@@ -1,5 +1,5 @@
1
1
  module Deploy
2
2
 
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ptdorf