shuttle-deploy 0.2.0.beta10 → 0.2.0.beta11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTA2N2Y4N2VkZTI2YTRlMjE0YWJlYjM0NWQ0ODFlM2FlZjkzYTY4Mg==
5
- data.tar.gz: !binary |-
6
- ZDU2NjdiMGIxYmYxYmI0ZjQ5M2QxMWQ2NjRkNWIyMTYwOGVhMzg1YQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MTE3ZWY4MzIwYmMwZThhNTA0MjdkZDdlMWRjYzBjZGQwOTQ5NjI3NjU1MTcw
10
- N2QyZGU2MGE2MmFlYzAwNzg4MDNlOWZjZjgzZmY3YzdhMDM5ZWUzYWEwMzNm
11
- OWM1YTkzNjVjNGZjY2FiODUwMGNjMjk1ODI1M2YxYTBlNDllMjg=
12
- data.tar.gz: !binary |-
13
- YmJlNjA1MjJkMWI4M2MxNGE3ZDYwZDYwN2VkZjk2MDNhZTk5YTdkMjg3ZGU5
14
- Yjg4MzQzNTk4YWJhN2JhYmFiYjdiOTU3YzZkOWY0Mzg1NzQ0ZDM1ZDkxODgz
15
- NDRmNzc2MmE0YmMxZGIxNTYxZjZjMWRkOTBkNmZkNDY0YjlhNzQ=
2
+ SHA1:
3
+ metadata.gz: 59c5026144047d47932a2f9784aa8c1013753018
4
+ data.tar.gz: d191d795f8ebe1383b240050b23c15366bb619e3
5
+ SHA512:
6
+ metadata.gz: 10080dc471876738d0b6192509fcb0a94cfc2d12ec8a307809738d7cdaf49575212bc21bd9f30034160f3ea1bfdcea98a2d567736ce77ac7209f9c9400a5c9e2
7
+ data.tar.gz: 2ccf2a708303bf5b0c512a6bbbfd469ce0e3373e9692d46d33b918850ebfe23fde3618ca384f38f944db1086eb875d90230cc450cdf7f30b6a40a471ca0cacee
data/README.md CHANGED
@@ -323,6 +323,33 @@ To run in debug mode, add `-d` flag:
323
323
  shuttle deploy -d
324
324
  ```
325
325
 
326
+ ## Rollback
327
+
328
+ In case if you want to revert latest deploy, run:
329
+
330
+ ```
331
+ shuttle rollback
332
+ ```
333
+
334
+ Last release will be permanently destroyed and previous release will be symlinked
335
+ as current. If you wish to run some commands on rollback, you can specify a hook:
336
+
337
+ ```yaml
338
+ hooks:
339
+ before_rollback:
340
+ - bash commands
341
+ after_rollback:
342
+ - bash commands
343
+ ```
344
+
345
+ ## Generators
346
+
347
+ You can generate deployment config with CLI:
348
+
349
+ ```
350
+ shuttle generate static
351
+ ```
352
+
326
353
  ## Test
327
354
 
328
355
  To run project test suite execute:
@@ -36,7 +36,7 @@ module Shuttle
36
36
  if res.success?
37
37
  log "WordPress core version: #{res.output}"
38
38
  else
39
- error "Unable to detect WordPress core version: #{res.output}"
39
+ warn "Unable to detect WordPress core version: #{res.output}"
40
40
  end
41
41
  end
42
42
 
@@ -47,7 +47,11 @@ module Shuttle
47
47
  end
48
48
 
49
49
  def generate_wordpress
50
- # TODO
50
+ base = generate_static
51
+
52
+ base['environment'] = ask('Rails env:', 'production')
53
+ base['precompile_assets'] = ask('Precompile assets', 'yes')
54
+ base['start_server'] = ask('Start server', true)
51
55
  end
52
56
 
53
57
  def generate_rails
@@ -18,6 +18,10 @@ module Shuttle
18
18
  raise DeployError, message
19
19
  end
20
20
 
21
+ def warn(message)
22
+ log("WARNING: #{message}", "warning")
23
+ end
24
+
21
25
  def git_installed?
22
26
  ssh.run("which git").success?
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module Shuttle
2
- VERSION = '0.2.0.beta10'
2
+ VERSION = '0.2.0.beta11'
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.beta10
4
+ version: 0.2.0.beta11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Sosedoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-12 00:00:00.000000000 Z
11
+ date: 2013-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -212,12 +212,12 @@ require_paths:
212
212
  - lib
213
213
  required_ruby_version: !ruby/object:Gem::Requirement
214
214
  requirements:
215
- - - ! '>='
215
+ - - '>='
216
216
  - !ruby/object:Gem::Version
217
217
  version: '0'
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ! '>'
220
+ - - '>'
221
221
  - !ruby/object:Gem::Version
222
222
  version: 1.3.1
223
223
  requirements: []
@@ -235,4 +235,3 @@ test_files:
235
235
  - spec/path_helpers_spec.rb
236
236
  - spec/spec_helper.rb
237
237
  - spec/target_spec.rb
238
- has_rdoc: