shuttle-deploy 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: fa4e0a35af42785ba005aa1538dc85bca9b5c2a3
4
- data.tar.gz: bb39eacda499496d36a816ffbe5512b0f3567bad
3
+ metadata.gz: fcb8733eacfe8787ee98dc6087b8c9e858dcb032
4
+ data.tar.gz: f0e211e37b5a70d0a7c9dcb5db516e07e8f36716
5
5
  SHA512:
6
- metadata.gz: 42dc50976cf4fe08d332daecfc9798ecd6a09c4ef39135a718673fb6ec2dd9925e58fbc8fa8006c923a6e3385f99fde77c2d6632dcd7d1c195ed944672706863
7
- data.tar.gz: df25c79661d951d87cd7f3a26477055086ac221f6b56942073049e8ac70f5bf49e36a92f4a3bdb549a21ea4413c4c1521fcc2d64828cd68530f0cb0c209cc797
6
+ metadata.gz: 67c023ec6e87f402a294f8da58dd85c87d4690b30560ffdf7ac13d7336d5d55c52c5f6f9f650fea2316ae22273350b67ae8e1e8b129f9d99a4e415a5eca17dc5
7
+ data.tar.gz: d224644aba1a8ee60d072c07e6fd5bab4cc6a0659f9aecc0ffd6c87c2b503c5d54646117cc9299d1f275ca3454203ddb50afab2210faa9ae513e3e01e5954232
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2013 Dan Sosedoff.
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
- Copyright (c) 2012-2013 Dan Sosedoff.
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
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
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
- res = ssh.run("cd #{release_path} && bundle exec rake #{command}")
49
- if res.failure?
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 'db:migrate'
124
+ rake("db:migrate", true)
122
125
  ssh.run("echo #{checksum} > #{schema_file}")
123
126
  else
124
127
  log "Database migration skipped"
@@ -1,3 +1,3 @@
1
1
  module Shuttle
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-04-22 00:00:00.000000000 Z
11
+ date: 2014-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake