engineyard-serverside 2.6.6 → 2.6.7.pre1

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.
@@ -71,7 +71,14 @@ module EY
71
71
  public_system_symlink_warning
72
72
  @up = true
73
73
  maintenance_page_html = File.read(source_path)
74
- run "echo '#{maintenance_page_html}' > #{enabled_maintenance_page_pathname}"
74
+ if maintenance_page_html.index("'")
75
+ #if the html contains an aprostophe it's probably custom coming from your app so will work on app slaves even if the serverside versions mistmatch
76
+ run "cp #{source_path} #{enabled_maintenance_page_pathname}"
77
+ else
78
+ #run fans out to all app servers but the serverside version is only isntalled on the server being used to deploy
79
+ #so if the serveside version being used isn't installed on a given app server the cp command would fail, but this echo will still work
80
+ run "echo '#{maintenance_page_html}' > #{enabled_maintenance_page_pathname}"
81
+ end
75
82
  end
76
83
 
77
84
  def disable
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module Serverside
3
- VERSION = '2.6.6'
3
+ VERSION = '2.6.7.pre1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.6
5
- prerelease:
4
+ version: 2.6.7.pre1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - EY Cloud Team
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-29 00:00:00.000000000 Z
12
+ date: 2016-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec