shuttle-deploy 0.2.0 → 0.2.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 +4 -4
- data/LICENSE +2 -2
- data/README.md +16 -17
- data/lib/shuttle/deployment/rails.rb +7 -4
- data/lib/shuttle/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcb8733eacfe8787ee98dc6087b8c9e858dcb032
|
4
|
+
data.tar.gz: f0e211e37b5a70d0a7c9dcb5db516e07e8f36716
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67c023ec6e87f402a294f8da58dd85c87d4690b30560ffdf7ac13d7336d5d55c52c5f6f9f650fea2316ae22273350b67ae8e1e8b129f9d99a4e415a5eca17dc5
|
7
|
+
data.tar.gz: d224644aba1a8ee60d072c07e6fd5bab4cc6a0659f9aecc0ffd6c87c2b503c5d54646117cc9299d1f275ca3454203ddb50afab2210faa9ae513e3e01e5954232
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2012-
|
1
|
+
Copyright (c) 2012-2014 Dan Sosedoff.
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
4
|
this software and associated documentation files (the "Software"), to deal in
|
@@ -15,4 +15,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
15
15
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
16
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
17
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -322,6 +322,20 @@ To run in debug mode, add `-d` flag:
|
|
322
322
|
```
|
323
323
|
shuttle deploy -d
|
324
324
|
```
|
325
|
+
## Hooks
|
326
|
+
|
327
|
+
List of all available hooks that you can use to run custom commands:
|
328
|
+
|
329
|
+
- `before_setup` - Before base application directories are created
|
330
|
+
- `after_setup` - After application directories are created
|
331
|
+
- `before_checkout_code` - Before code update (git pull, etc)
|
332
|
+
- `after_checkout_core` - After code has been updated
|
333
|
+
- `before_link_release` - Before linking release
|
334
|
+
- `after_link_release` - After release has been linked
|
335
|
+
- `before_rollback` - Before rollback operation
|
336
|
+
- `after_rolback` - After rollback operation
|
337
|
+
|
338
|
+
Each hook could include one or many bash commands.
|
325
339
|
|
326
340
|
## Rollback
|
327
341
|
|
@@ -360,21 +374,6 @@ bundle exec rake test
|
|
360
374
|
|
361
375
|
## License
|
362
376
|
|
363
|
-
|
364
|
-
|
365
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
366
|
-
this software and associated documentation files (the "Software"), to deal in
|
367
|
-
the Software without restriction, including without limitation the rights to
|
368
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
369
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
370
|
-
subject to the following conditions:
|
371
|
-
|
372
|
-
The above copyright notice and this permission notice shall be included in all
|
373
|
-
copies or substantial portions of the Software.
|
377
|
+
The MIT License
|
374
378
|
|
375
|
-
|
376
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
377
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
378
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
379
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
380
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
379
|
+
Copyright (c) 2012-2014 Dan Sosedoff
|
@@ -44,9 +44,12 @@ module Shuttle
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
def rake(command)
|
48
|
-
|
49
|
-
|
47
|
+
def rake(command, print_output = false)
|
48
|
+
result = ssh.run("cd #{release_path} && bundle exec rake #{command}")
|
49
|
+
|
50
|
+
if result.success?
|
51
|
+
puts result.output if print_output
|
52
|
+
else
|
50
53
|
error "Unable to run rake command: #{command}. Reason: #{res.output}"
|
51
54
|
end
|
52
55
|
end
|
@@ -118,7 +121,7 @@ module Shuttle
|
|
118
121
|
|
119
122
|
if migrate == true
|
120
123
|
log "Migrating database"
|
121
|
-
rake
|
124
|
+
rake("db:migrate", true)
|
122
125
|
ssh.run("echo #{checksum} > #{schema_file}")
|
123
126
|
else
|
124
127
|
log "Database migration skipped"
|
data/lib/shuttle/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shuttle-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Sosedoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|