shuttle-deploy 0.3.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b4112af6d635cb4038808612be1c24d688bd7d8
4
- data.tar.gz: 0670095e6b330219b74d21d49f455e0136a9e244
3
+ metadata.gz: d7782466353a392490051ef3cf055a9fba64de5a
4
+ data.tar.gz: a89878605b8f372bfd16e80dd085fedb3efe24d0
5
5
  SHA512:
6
- metadata.gz: 1b8128127b8f5350540c3e75eef813407c747527a3586b46b57fb0611b2bd9e8beaba254b3aac3ef6c901c676ebd31c1817096b440ae6362c02524f40a9a173b
7
- data.tar.gz: c5fa59f52b38ec1842d5b57219ddddf3267f4c04deb985de1ebe702331f512e2f042a3b6575f22d431f4be99519470e6a29662ea99e65447c7be8aa6994037ef
6
+ metadata.gz: dbd8f37d472339e65a531ef1904fcc68387f621b1b92ab3ff2bf08750e7ba73f5da363f80f4fb4c3bb17fbccb131173a6a41e00fd1ccc3d9a1dc8e2f7c5cc48f
7
+ data.tar.gz: 30a7b7528266c768f079a0a7d2a075ba2ab9f03929bc81a6dac70e71a2c4a978a19a3e1cd23833952cdced2b40ea60819169c1f190d0c9dff2ec230da5c059dc
data/.travis.yml CHANGED
@@ -4,6 +4,5 @@ rvm:
4
4
  - 1.8.7
5
5
  - 1.9.2
6
6
  - 1.9.3
7
- - 2.0.0
8
- - 2.1.0
9
- - 2.1.2
7
+ - 2.0
8
+ - 2.1
@@ -118,7 +118,14 @@ module Shuttle
118
118
  end
119
119
 
120
120
  def site_installed?
121
- ssh.run("cd #{release_path} && wp core version").success?
121
+ result = ssh.run("cd #{release_path} && wp core version")
122
+
123
+ if result.failure? && debug?
124
+ log "Wordpress core check failed:"
125
+ log result.output
126
+ end
127
+
128
+ result.success?
122
129
  end
123
130
 
124
131
  def site_install
@@ -17,6 +17,10 @@ module Shuttle
17
17
 
18
18
  @config_path = config_path
19
19
  @target = target
20
+
21
+ if @options[:log]
22
+ ENV["SHUTTLE_DEBUG"] = "1"
23
+ end
20
24
  end
21
25
 
22
26
  def load_config
@@ -301,5 +301,9 @@ module Shuttle
301
301
  def execute_commands(commands = [], allow_failures = false)
302
302
  Shuttle::Hook.new(self).run(commands, allow_failures)
303
303
  end
304
+
305
+ def debug?
306
+ ENV["SHUTTLE_DEBUG"] ? true : false
307
+ end
304
308
  end
305
309
  end
@@ -1,3 +1,3 @@
1
1
  module Shuttle
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.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.3.0
4
+ version: 0.3.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-10-07 00:00:00.000000000 Z
11
+ date: 2014-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  requirements: []
228
228
  rubyforge_project:
229
- rubygems_version: 2.2.2
229
+ rubygems_version: 2.4.5
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Minimalistic deployment tool