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.
- checksums.yaml +4 -4
- data/Readme.md +6 -35
- data/bin/deploy +1 -1
- data/lib/deploy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aa36ae8850baedbe918c8f8c4e826ff96e815c3
|
4
|
+
data.tar.gz: 74230a2dd19aae06497d3f33fac540d032d42499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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`
|
31
|
-
current directory. If not you can pass it with `--file deploy.
|
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
|
-
|
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
|
-
|
56
|
-
<<: *
|
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
|
-
<<: *
|
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
data/lib/deploy/version.rb
CHANGED