engineyard-serverside 2.6.17 → 2.6.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/lib/engineyard-serverside/dependency_manager/bundler.rb +1 -1
  3. data/lib/engineyard-serverside/slug.rb +7 -0
  4. data/lib/engineyard-serverside/slug/distributor.rb +58 -0
  5. data/lib/engineyard-serverside/slug/enabler.rb +100 -0
  6. data/lib/engineyard-serverside/slug/failure_handler.rb +24 -0
  7. data/lib/engineyard-serverside/slug/finalizer.rb +86 -0
  8. data/lib/engineyard-serverside/slug/generator.rb +29 -0
  9. data/lib/engineyard-serverside/slug/migrator.rb +41 -0
  10. data/lib/engineyard-serverside/slug/restarter.rb +103 -0
  11. data/lib/engineyard-serverside/slug/source.rb +16 -0
  12. data/lib/engineyard-serverside/slug/source/updater.rb +194 -0
  13. data/lib/engineyard-serverside/version.rb +1 -1
  14. data/lib/railway.rb +43 -0
  15. data/lib/result.rb +7 -0
  16. data/lib/result/base.rb +41 -0
  17. data/lib/result/dsl.rb +16 -0
  18. data/lib/result/failure.rb +29 -0
  19. data/lib/result/success.rb +24 -0
  20. data/lib/runner.rb +34 -0
  21. metadata +25 -405
  22. data/spec/archive_deploy_spec.rb +0 -53
  23. data/spec/basic_deploy_spec.rb +0 -26
  24. data/spec/bundler_deploy_spec.rb +0 -160
  25. data/spec/configuration_spec.rb +0 -206
  26. data/spec/custom_deploy_spec.rb +0 -128
  27. data/spec/deploy_hook_spec.rb +0 -362
  28. data/spec/deprecation_spec.rb +0 -23
  29. data/spec/ey_yml_customized_deploy_spec.rb +0 -99
  30. data/spec/fixtures/gitrepo.tar.gz +0 -0
  31. data/spec/fixtures/invalid_hook.rb +0 -1
  32. data/spec/fixtures/lockfiles/0.9-no-bundler +0 -111
  33. data/spec/fixtures/lockfiles/0.9-with-bundler +0 -117
  34. data/spec/fixtures/lockfiles/1.0-no-bundler +0 -54
  35. data/spec/fixtures/lockfiles/1.0.0.rc.1-with-bundler +0 -162
  36. data/spec/fixtures/lockfiles/1.0.18-do_mysql +0 -88
  37. data/spec/fixtures/lockfiles/1.0.18-do_postgres +0 -79
  38. data/spec/fixtures/lockfiles/1.0.18-mysql +0 -43
  39. data/spec/fixtures/lockfiles/1.0.18-mysql2 +0 -43
  40. data/spec/fixtures/lockfiles/1.0.18-pg +0 -43
  41. data/spec/fixtures/lockfiles/1.0.6-no-bundler +0 -51
  42. data/spec/fixtures/lockfiles/1.0.6-with-any-bundler +0 -52
  43. data/spec/fixtures/lockfiles/1.0.6-with-bundler +0 -52
  44. data/spec/fixtures/lockfiles/1.15.1-no-bundler +0 -51
  45. data/spec/fixtures/lockfiles/1.3.1-rails-3.2.13 +0 -112
  46. data/spec/fixtures/lockfiles/not-a-lockfile +0 -1
  47. data/spec/fixtures/repos/assets_detected/Gemfile +0 -5
  48. data/spec/fixtures/repos/assets_detected/Gemfile.lock +0 -88
  49. data/spec/fixtures/repos/assets_detected/README +0 -1
  50. data/spec/fixtures/repos/assets_detected/Rakefile +0 -5
  51. data/spec/fixtures/repos/assets_detected/app/assets/empty +0 -0
  52. data/spec/fixtures/repos/assets_detected/config/application.rb +0 -5
  53. data/spec/fixtures/repos/assets_detected/config/ey.yml +0 -3
  54. data/spec/fixtures/repos/assets_disabled/Gemfile +0 -5
  55. data/spec/fixtures/repos/assets_disabled/Gemfile.lock +0 -88
  56. data/spec/fixtures/repos/assets_disabled/README +0 -1
  57. data/spec/fixtures/repos/assets_disabled/Rakefile +0 -6
  58. data/spec/fixtures/repos/assets_disabled/app/assets/empty +0 -0
  59. data/spec/fixtures/repos/assets_disabled/config/application.rb +0 -5
  60. data/spec/fixtures/repos/assets_disabled/config/ey.yml +0 -3
  61. data/spec/fixtures/repos/assets_disabled_in_ey_yml/Gemfile +0 -5
  62. data/spec/fixtures/repos/assets_disabled_in_ey_yml/Gemfile.lock +0 -88
  63. data/spec/fixtures/repos/assets_disabled_in_ey_yml/README +0 -1
  64. data/spec/fixtures/repos/assets_disabled_in_ey_yml/Rakefile +0 -6
  65. data/spec/fixtures/repos/assets_disabled_in_ey_yml/app/assets/empty +0 -0
  66. data/spec/fixtures/repos/assets_disabled_in_ey_yml/config/application.rb +0 -5
  67. data/spec/fixtures/repos/assets_disabled_in_ey_yml/config/ey.yml +0 -5
  68. data/spec/fixtures/repos/assets_disabled_utf8/Gemfile +0 -5
  69. data/spec/fixtures/repos/assets_disabled_utf8/Gemfile.lock +0 -88
  70. data/spec/fixtures/repos/assets_disabled_utf8/README +0 -3
  71. data/spec/fixtures/repos/assets_disabled_utf8/Rakefile +0 -5
  72. data/spec/fixtures/repos/assets_disabled_utf8/app/assets/empty +0 -0
  73. data/spec/fixtures/repos/assets_disabled_utf8/config/application.rb +0 -7
  74. data/spec/fixtures/repos/assets_disabled_utf8/config/ey.yml +0 -3
  75. data/spec/fixtures/repos/assets_enabled_all/Gemfile +0 -5
  76. data/spec/fixtures/repos/assets_enabled_all/Gemfile.lock +0 -88
  77. data/spec/fixtures/repos/assets_enabled_all/README +0 -1
  78. data/spec/fixtures/repos/assets_enabled_all/app/assets/empty +0 -0
  79. data/spec/fixtures/repos/assets_enabled_all/config/application.rb +0 -5
  80. data/spec/fixtures/repos/assets_enabled_all/config/ey.yml +0 -6
  81. data/spec/fixtures/repos/assets_enabled_all/script/assets +0 -5
  82. data/spec/fixtures/repos/assets_enabled_all/tmp/obstruction +0 -1
  83. data/spec/fixtures/repos/assets_enabled_in_ey_yml/Gemfile +0 -3
  84. data/spec/fixtures/repos/assets_enabled_in_ey_yml/Gemfile.lock +0 -10
  85. data/spec/fixtures/repos/assets_enabled_in_ey_yml/README +0 -1
  86. data/spec/fixtures/repos/assets_enabled_in_ey_yml/Rakefile +0 -8
  87. data/spec/fixtures/repos/assets_enabled_in_ey_yml/config/ey.yml +0 -4
  88. data/spec/fixtures/repos/assets_enabled_util_only/Gemfile +0 -5
  89. data/spec/fixtures/repos/assets_enabled_util_only/Gemfile.lock +0 -88
  90. data/spec/fixtures/repos/assets_enabled_util_only/README +0 -1
  91. data/spec/fixtures/repos/assets_enabled_util_only/Rakefile +0 -6
  92. data/spec/fixtures/repos/assets_enabled_util_only/app/assets/empty +0 -0
  93. data/spec/fixtures/repos/assets_enabled_util_only/config/application.rb +0 -5
  94. data/spec/fixtures/repos/assets_enabled_util_only/config/ey.yml +0 -6
  95. data/spec/fixtures/repos/assets_error/Gemfile +0 -5
  96. data/spec/fixtures/repos/assets_error/Gemfile.lock +0 -88
  97. data/spec/fixtures/repos/assets_error/README +0 -1
  98. data/spec/fixtures/repos/assets_error/Rakefile +0 -4
  99. data/spec/fixtures/repos/assets_error/app/assets/empty +0 -0
  100. data/spec/fixtures/repos/assets_error/config/application.rb +0 -5
  101. data/spec/fixtures/repos/assets_error/config/ey.yml +0 -4
  102. data/spec/fixtures/repos/assets_in_hook/Gemfile +0 -5
  103. data/spec/fixtures/repos/assets_in_hook/Gemfile.lock +0 -88
  104. data/spec/fixtures/repos/assets_in_hook/README +0 -2
  105. data/spec/fixtures/repos/assets_in_hook/Rakefile +0 -5
  106. data/spec/fixtures/repos/assets_in_hook/app/assets/empty +0 -0
  107. data/spec/fixtures/repos/assets_in_hook/config/application.rb +0 -5
  108. data/spec/fixtures/repos/assets_in_hook/config/ey.yml +0 -3
  109. data/spec/fixtures/repos/assets_in_hook/deploy/before_compile_assets.rb +0 -2
  110. data/spec/fixtures/repos/bundle_fails/Gemfile +0 -1
  111. data/spec/fixtures/repos/bundle_fails/README +0 -1
  112. data/spec/fixtures/repos/bundle_fails/deploy/after_bundle.rb +0 -1
  113. data/spec/fixtures/repos/bundler_disabled/Gemfile +0 -4
  114. data/spec/fixtures/repos/bundler_disabled/Gemfile.lock +0 -12
  115. data/spec/fixtures/repos/bundler_disabled/README +0 -1
  116. data/spec/fixtures/repos/bundler_disabled/config/ey.yml +0 -2
  117. data/spec/fixtures/repos/bundler_disabled/deploy/after_bundle.rb +0 -1
  118. data/spec/fixtures/repos/bundler_disabled/deploy/before_bundle.rb +0 -1
  119. data/spec/fixtures/repos/bundler_old/Gemfile +0 -5
  120. data/spec/fixtures/repos/bundler_old/Gemfile.lock +0 -15
  121. data/spec/fixtures/repos/bundler_old/README +0 -1
  122. data/spec/fixtures/repos/default/Gemfile +0 -4
  123. data/spec/fixtures/repos/default/Gemfile.lock +0 -12
  124. data/spec/fixtures/repos/default/README +0 -5
  125. data/spec/fixtures/repos/default/ey.yml +0 -3
  126. data/spec/fixtures/repos/executable_hooks/README +0 -1
  127. data/spec/fixtures/repos/executable_hooks/deploy/before_restart +0 -72
  128. data/spec/fixtures/repos/executable_hooks_not_executable/README +0 -3
  129. data/spec/fixtures/repos/executable_hooks_not_executable/deploy/before_restart +0 -3
  130. data/spec/fixtures/repos/ey_yml/Gemfile +0 -4
  131. data/spec/fixtures/repos/ey_yml/Gemfile.lock +0 -12
  132. data/spec/fixtures/repos/ey_yml/README +0 -1
  133. data/spec/fixtures/repos/ey_yml/config/ey.yml +0 -18
  134. data/spec/fixtures/repos/ey_yml/deploy/before_migrate.rb +0 -6
  135. data/spec/fixtures/repos/ey_yml_alt/Gemfile +0 -4
  136. data/spec/fixtures/repos/ey_yml_alt/Gemfile.lock +0 -12
  137. data/spec/fixtures/repos/ey_yml_alt/README +0 -1
  138. data/spec/fixtures/repos/ey_yml_alt/deploy/before_migrate.rb +0 -6
  139. data/spec/fixtures/repos/ey_yml_alt/ey.yml +0 -12
  140. data/spec/fixtures/repos/hook_fails/README +0 -1
  141. data/spec/fixtures/repos/hook_fails/deploy/before_deploy.rb +0 -1
  142. data/spec/fixtures/repos/hooks/README +0 -1
  143. data/spec/fixtures/repos/hooks/deploy/after_bundle.rb +0 -1
  144. data/spec/fixtures/repos/hooks/deploy/after_compile_assets.rb +0 -1
  145. data/spec/fixtures/repos/hooks/deploy/after_deploy.rb +0 -1
  146. data/spec/fixtures/repos/hooks/deploy/after_migrate.rb +0 -1
  147. data/spec/fixtures/repos/hooks/deploy/after_restart.rb +0 -1
  148. data/spec/fixtures/repos/hooks/deploy/after_symlink.rb +0 -1
  149. data/spec/fixtures/repos/hooks/deploy/before_bundle.rb +0 -1
  150. data/spec/fixtures/repos/hooks/deploy/before_compile_assets.rb +0 -1
  151. data/spec/fixtures/repos/hooks/deploy/before_deploy.rb +0 -1
  152. data/spec/fixtures/repos/hooks/deploy/before_migrate.rb +0 -1
  153. data/spec/fixtures/repos/hooks/deploy/before_restart.rb +0 -1
  154. data/spec/fixtures/repos/hooks/deploy/before_symlink.rb +0 -1
  155. data/spec/fixtures/repos/multi_dep_manager/README +0 -1
  156. data/spec/fixtures/repos/multi_dep_manager/composer.json +0 -5
  157. data/spec/fixtures/repos/multi_dep_manager/composer.lock +0 -462
  158. data/spec/fixtures/repos/multi_dep_manager/package.json +0 -7
  159. data/spec/fixtures/repos/multi_dep_manager/public/index.php +0 -4
  160. data/spec/fixtures/repos/no_ey_config/Gemfile +0 -3
  161. data/spec/fixtures/repos/no_ey_config/Gemfile.lock +0 -10
  162. data/spec/fixtures/repos/no_ey_config/README +0 -1
  163. data/spec/fixtures/repos/no_ey_config/ey.yml +0 -3
  164. data/spec/fixtures/repos/no_ey_config_no_warning/Gemfile +0 -3
  165. data/spec/fixtures/repos/no_ey_config_no_warning/Gemfile.lock +0 -10
  166. data/spec/fixtures/repos/no_ey_config_no_warning/README +0 -1
  167. data/spec/fixtures/repos/no_ey_config_no_warning/ey.yml +0 -5
  168. data/spec/fixtures/repos/no_gemfile_lock/Gemfile +0 -4
  169. data/spec/fixtures/repos/no_gemfile_lock/README +0 -1
  170. data/spec/fixtures/repos/no_gemfile_lock/ey.yml +0 -3
  171. data/spec/fixtures/repos/nodejs/README +0 -1
  172. data/spec/fixtures/repos/nodejs/package.json +0 -7
  173. data/spec/fixtures/repos/not_bundled/README +0 -1
  174. data/spec/fixtures/repos/npm_disabled/README +0 -1
  175. data/spec/fixtures/repos/npm_disabled/config/ey.yml +0 -2
  176. data/spec/fixtures/repos/npm_disabled/package.json +0 -7
  177. data/spec/fixtures/repos/php_composer_disabled/README +0 -1
  178. data/spec/fixtures/repos/php_composer_disabled/composer.json +0 -5
  179. data/spec/fixtures/repos/php_composer_disabled/composer.lock +0 -462
  180. data/spec/fixtures/repos/php_composer_disabled/config/ey.yml +0 -2
  181. data/spec/fixtures/repos/php_composer_disabled/public/index.php +0 -4
  182. data/spec/fixtures/repos/php_composer_lock/README +0 -1
  183. data/spec/fixtures/repos/php_composer_lock/composer.json +0 -5
  184. data/spec/fixtures/repos/php_composer_lock/composer.lock +0 -462
  185. data/spec/fixtures/repos/php_composer_lock/public/index.php +0 -4
  186. data/spec/fixtures/repos/php_no_composer_lock/README +0 -1
  187. data/spec/fixtures/repos/php_no_composer_lock/composer.json +0 -21
  188. data/spec/fixtures/repos/php_no_composer_lock/public/index.php +0 -4
  189. data/spec/fixtures/repos/public_system/Gemfile +0 -4
  190. data/spec/fixtures/repos/public_system/Gemfile.lock +0 -12
  191. data/spec/fixtures/repos/public_system/README +0 -5
  192. data/spec/fixtures/repos/public_system/ey.yml +0 -3
  193. data/spec/fixtures/repos/public_system/public/system/cant_touch_this.txt +0 -3
  194. data/spec/fixtures/repos/sqlite3/Gemfile +0 -4
  195. data/spec/fixtures/repos/sqlite3/Gemfile.lock +0 -89
  196. data/spec/fixtures/repos/sqlite3/README +0 -1
  197. data/spec/fixtures/retwisj.war +0 -0
  198. data/spec/fixtures/valid_hook.rb +0 -1
  199. data/spec/git_strategy_spec.rb +0 -34
  200. data/spec/lockfile_parser_spec.rb +0 -126
  201. data/spec/maintenance_spec.rb +0 -44
  202. data/spec/multi_dependency_manager_spec.rb +0 -25
  203. data/spec/nodejs_deploy_spec.rb +0 -30
  204. data/spec/php_deploy_spec.rb +0 -81
  205. data/spec/platform_configure_spec.rb +0 -61
  206. data/spec/rails31_deploy_spec.rb +0 -172
  207. data/spec/restart_spec.rb +0 -43
  208. data/spec/rollback_spec.rb +0 -87
  209. data/spec/server_spec.rb +0 -70
  210. data/spec/services_deploy_spec.rb +0 -165
  211. data/spec/shell_spec.rb +0 -57
  212. data/spec/source/archive_spec.rb +0 -33
  213. data/spec/source/git_spec.rb +0 -44
  214. data/spec/spec_helper.rb +0 -360
  215. data/spec/sqlite3_deploy_spec.rb +0 -38
  216. data/spec/support/integration.rb +0 -103
  217. data/spec/support/source_doubles.rb +0 -28
  218. data/spec/support/timecop.rb +0 -5
  219. data/spec/symlink_spec.rb +0 -15
@@ -0,0 +1,16 @@
1
+ require 'engineyard-serverside/slug/source/updater'
2
+
3
+ module EY
4
+ module Serverside
5
+ module Slug
6
+ module Source
7
+
8
+ def self.update(data = {})
9
+ Updater.new(data).update
10
+ end
11
+
12
+
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,194 @@
1
+ require 'railway'
2
+ require 'runner'
3
+
4
+ module EY
5
+ module Serverside
6
+ module Slug
7
+ module Source
8
+
9
+ class Updater
10
+ include Railway
11
+ include Runner
12
+
13
+ step :create_source_cache
14
+ step :ensure_ssh_wrapper
15
+ step :determine_if_clone_needed
16
+ step :clone_if_necessary
17
+ step :prune_source_cache
18
+ step :fetch_updates
19
+ step :clean_local_branch
20
+ step :calculate_requested_revision
21
+ step :checkout_requested_revision
22
+ step :sync_submodules
23
+ step :update_submodules
24
+ step :clean_source_cache
25
+
26
+ attr_reader :source_cache, :uri, :git, :quiet, :ref, :config
27
+
28
+ def initialize(input = {})
29
+ @input = input
30
+ @config = input[:config]
31
+ source = input[:config].source
32
+ @source_cache = source.source_cache
33
+ @uri = source.uri
34
+ @quiet = source.opts[:verbose] ? '' : '--quiet'
35
+ @ref = source.ref
36
+ @git = "#{wrapped_git} --git-dir #{source_cache}/.git --work-tree #{source_cache}"
37
+ end
38
+
39
+ def update
40
+ call(@input)
41
+ end
42
+
43
+ private
44
+
45
+ def wrapped_git
46
+ "GIT_SSH=#{paths.ssh_wrapper} git"
47
+ end
48
+
49
+ def create_source_cache(input = {})
50
+ begin
51
+ source_cache.mkpath
52
+ rescue
53
+ return Failure(:error => "Could not create #{source_cache}")
54
+ end
55
+
56
+ Success(input)
57
+ end
58
+
59
+ def ensure_ssh_wrapper(input = {})
60
+ wrapper_location = paths.ssh_wrapper
61
+
62
+ return Success(input) if File.executable?(wrapper_location)
63
+
64
+ begin
65
+ wrapper = File.open(wrapper_location, 'w', 0700)
66
+ wrapper.write <<-WRAPPER
67
+ #!/bin/sh
68
+
69
+ unset SSH_AUTH_SOCK
70
+
71
+ command=$(wcho "$*" | sed -e 's/^-batch //')
72
+
73
+ ssh -o CheckHostIP=no -o StrictHostKeyChecking=no -o PasswordAuthentication=no -o LogLevel=INFO -o IdentityFile=#{paths.deploy_key} -o IdentitiesOnly=yes ${command}
74
+ WRAPPER
75
+ wrapper.close
76
+ rescue => e
77
+ return Failure(input.merge(:error => e))
78
+ end
79
+
80
+ Success(input)
81
+ end
82
+
83
+ def determine_if_clone_needed(input = {})
84
+
85
+ check =
86
+ source_cache.directory? &&
87
+ run_and_output("#{git} remote -v | grep original").include?(uri)
88
+
89
+ Success(input.merge(:clone_needed => !check))
90
+ end
91
+
92
+ def clone_if_necessary(input = {})
93
+ if input[:clone_needed]
94
+ unless run_and_success?("rm -rf #{source_cache} && git clone #{quiet} #{uri} #{source_cache} 2>&1")
95
+
96
+ return Failure(
97
+ input.merge(:error => "Could not clone #{uri} to #{source_cache}")
98
+ )
99
+ end
100
+ end
101
+
102
+ Success(input)
103
+ end
104
+
105
+ def prune_source_cache(input = {})
106
+ return Failure(
107
+ input.merge(:error => "Could not prune #{source_cache}")
108
+ ) unless run_and_success?("#{git} remote prune origin 2>&1")
109
+
110
+ Success(input)
111
+ end
112
+
113
+ def fetch_updates(input = {})
114
+ return Failure(
115
+ input.merge(:error => "Could not fetch #{source_cache}")
116
+ ) unless run_and_success?("#{git} fetch --force --prune --update-head-ok #{quiet} origin '+refs/heads/*:refs/remotes/origin/*' '+refs/tags/*:refs/tags/*' 2>&1")
117
+
118
+ Success(input)
119
+ end
120
+
121
+ def clean_local_branch(input = {})
122
+ run_and_success?("#{git} show-branch #{ref} > /dev/null 2>&1 && #{git} branch -D #{ref} > /dev/null 2>&1")
123
+
124
+ Success(input)
125
+ end
126
+
127
+ def calculate_requested_revision(input = {})
128
+ remote_branch = Dir.chdir(source_cache) do
129
+ run_and_success?("#{git} show-branch origin/#{ref} > /dev/null 2>&1")
130
+ end
131
+
132
+ Success(
133
+ input.merge(
134
+ :requested_branch => remote_branch ? "origin/#{ref}" : ref
135
+ )
136
+ )
137
+ end
138
+
139
+ def checkout_requested_revision(input = {})
140
+ requested_branch = input[:requested_branch]
141
+
142
+ Dir.chdir(source_cache) {
143
+ run_and_success?(
144
+ "git checkout --force #{quiet} '#{requested_branch}'"
145
+ ) || run_and_success?(
146
+ "git reset --hard #{quiet} '#{requested_branch}'"
147
+ )
148
+ } ?
149
+ Success(input) :
150
+ Failure(
151
+ input.merge(:error => "Could not check out #{requested_branch}")
152
+ )
153
+ end
154
+
155
+ def sync_submodules(input = {})
156
+ return Failure(
157
+ input.merge(:error => "Could not sync submodules")
158
+ ) unless Dir.chdir(source_cache) {
159
+ run_and_success?("#{wrapped_git} submodule sync")
160
+ }
161
+
162
+ Success(input)
163
+ end
164
+
165
+ def update_submodules(input = {})
166
+ return Failure(
167
+ input.merge(:error => "Could not update submodules")
168
+ ) unless Dir.chdir(source_cache) {
169
+ run_and_success?("#{wrapped_git} submodule update --init --recursive")
170
+ }
171
+
172
+ Success(input)
173
+ end
174
+
175
+ def clean_source_cache(input = {})
176
+ return Failure(
177
+ input.merge(:error => "Could not clean source")
178
+ ) unless Dir.chdir(source_cache) {
179
+ run_and_success?('git clean -dfq')
180
+ }
181
+
182
+ Success(input)
183
+ end
184
+
185
+ def paths
186
+ config.paths
187
+ end
188
+
189
+ end
190
+
191
+ end
192
+ end
193
+ end
194
+ end
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module Serverside
3
- VERSION = '2.6.17'
3
+ VERSION = '2.6.19'
4
4
  end
5
5
  end
@@ -0,0 +1,43 @@
1
+ require 'result'
2
+
3
+ module Railway
4
+ include Result::DSL
5
+
6
+ module DSL
7
+ def step(name, options = {})
8
+ with = options.delete(:with)
9
+ steps.push(:name => name, :with => with)
10
+ end
11
+
12
+ def steps
13
+ @steps ||= []
14
+ end
15
+ end
16
+
17
+ def self.included(base)
18
+ base.send :extend, DSL
19
+ end
20
+
21
+ def call(input = {})
22
+ steps = self.class.steps
23
+
24
+ return Failure('No steps') if steps.empty?
25
+
26
+ steps.
27
+ inject(Success(input)) {|result, step|
28
+ result.and_then {|data|
29
+ dispatch_step(step, data)
30
+ }
31
+ }
32
+ end
33
+
34
+ private
35
+ def dispatch_step(step, data)
36
+ begin
37
+ result = (step[:with] || self).send(step[:name], data)
38
+ result.is_a?(Result::Base) ? result : Success(result)
39
+ rescue => error
40
+ Failure(error)
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,7 @@
1
+ require 'result/dsl'
2
+ require 'result/success'
3
+ require 'result/failure'
4
+
5
+ module Result
6
+ extend DSL
7
+ end
@@ -0,0 +1,41 @@
1
+ module Result
2
+
3
+ class Base
4
+ def initialize(to_wrap)
5
+ @wrapped = to_wrap
6
+ end
7
+
8
+ def success?
9
+ false
10
+ end
11
+
12
+ def failure?
13
+ false
14
+ end
15
+
16
+ def value
17
+ raise "not present"
18
+ end
19
+
20
+ def error
21
+ raise "not present"
22
+ end
23
+
24
+ def and_then
25
+ self
26
+ end
27
+
28
+ def or_else
29
+ self
30
+ end
31
+
32
+ def on_success
33
+ self
34
+ end
35
+
36
+ def on_failure
37
+ self
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,16 @@
1
+ require 'result/success'
2
+ require 'result/failure'
3
+
4
+ module Result
5
+
6
+ module DSL
7
+ def Success(value)
8
+ Success.new(value)
9
+ end
10
+
11
+ def Failure(error)
12
+ Failure.new(error)
13
+ end
14
+ end
15
+
16
+ end
@@ -0,0 +1,29 @@
1
+ require 'result/base'
2
+
3
+ module Result
4
+
5
+ class Failure < Base
6
+ def initialize(to_wrap)
7
+ super
8
+ freeze
9
+ end
10
+
11
+ def error
12
+ @wrapped
13
+ end
14
+
15
+ def failure?
16
+ true
17
+ end
18
+
19
+ def or_else
20
+ yield error
21
+ end
22
+
23
+ def on_failure
24
+ yield error
25
+ super
26
+ end
27
+ end
28
+
29
+ end
@@ -0,0 +1,24 @@
1
+ require 'result/base'
2
+
3
+ module Result
4
+
5
+ class Success < Base
6
+ def value
7
+ @wrapped
8
+ end
9
+
10
+ def success?
11
+ true
12
+ end
13
+
14
+ def and_then
15
+ yield value
16
+ end
17
+
18
+ def on_success
19
+ yield value
20
+ super
21
+ end
22
+ end
23
+
24
+ end
@@ -0,0 +1,34 @@
1
+ require 'engineyard-serverside/spawner'
2
+
3
+ module Runner
4
+ def runner
5
+ EY::Serverside::Spawner
6
+ end
7
+
8
+ # Internal: Run a command.
9
+ #
10
+ # cmd - A string command.
11
+ #
12
+ # Returns an instance of Spawner.
13
+ def run(cmd)
14
+ runner.run(cmd, shell, nil)
15
+ end
16
+
17
+ # Internal: Run a command and return the output.
18
+ #
19
+ # cmd - A string command.
20
+ #
21
+ # Returns the output of the command.
22
+ def run_and_output(cmd)
23
+ run(cmd).output
24
+ end
25
+
26
+ # Internal: Run a command and check if it was successful.
27
+ #
28
+ # cmd - A string command.
29
+ #
30
+ # Returns success.
31
+ def run_and_success?(cmd)
32
+ run(cmd).success?
33
+ end
34
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.17
4
+ version: 2.6.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - EY Cloud Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2019-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: sqlite3
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 1.3.13
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 1.3.13
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: mime-types
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -214,12 +214,29 @@ files:
214
214
  - lib/engineyard-serverside/shell/formatter.rb
215
215
  - lib/engineyard-serverside/shell/helpers.rb
216
216
  - lib/engineyard-serverside/shell/yieldio.rb
217
+ - lib/engineyard-serverside/slug.rb
218
+ - lib/engineyard-serverside/slug/distributor.rb
219
+ - lib/engineyard-serverside/slug/enabler.rb
220
+ - lib/engineyard-serverside/slug/failure_handler.rb
221
+ - lib/engineyard-serverside/slug/finalizer.rb
222
+ - lib/engineyard-serverside/slug/generator.rb
223
+ - lib/engineyard-serverside/slug/migrator.rb
224
+ - lib/engineyard-serverside/slug/restarter.rb
225
+ - lib/engineyard-serverside/slug/source.rb
226
+ - lib/engineyard-serverside/slug/source/updater.rb
217
227
  - lib/engineyard-serverside/source.rb
218
228
  - lib/engineyard-serverside/source/archive.rb
219
229
  - lib/engineyard-serverside/source/git.rb
220
230
  - lib/engineyard-serverside/spawner.rb
221
231
  - lib/engineyard-serverside/task.rb
222
232
  - lib/engineyard-serverside/version.rb
233
+ - lib/railway.rb
234
+ - lib/result.rb
235
+ - lib/result/base.rb
236
+ - lib/result/dsl.rb
237
+ - lib/result/failure.rb
238
+ - lib/result/success.rb
239
+ - lib/runner.rb
223
240
  - lib/vendor/escape/Readme
224
241
  - lib/vendor/escape/doc_include/template/qualitysmith.rb
225
242
  - lib/vendor/escape/lib/escape.rb
@@ -303,204 +320,6 @@ files:
303
320
  - lib/vendor/thor/lib/thor/task.rb
304
321
  - lib/vendor/thor/lib/thor/util.rb
305
322
  - lib/vendor/thor/lib/thor/version.rb
306
- - spec/archive_deploy_spec.rb
307
- - spec/basic_deploy_spec.rb
308
- - spec/bundler_deploy_spec.rb
309
- - spec/configuration_spec.rb
310
- - spec/custom_deploy_spec.rb
311
- - spec/deploy_hook_spec.rb
312
- - spec/deprecation_spec.rb
313
- - spec/ey_yml_customized_deploy_spec.rb
314
- - spec/fixtures/gitrepo.tar.gz
315
- - spec/fixtures/invalid_hook.rb
316
- - spec/fixtures/lockfiles/0.9-no-bundler
317
- - spec/fixtures/lockfiles/0.9-with-bundler
318
- - spec/fixtures/lockfiles/1.0-no-bundler
319
- - spec/fixtures/lockfiles/1.0.0.rc.1-with-bundler
320
- - spec/fixtures/lockfiles/1.0.18-do_mysql
321
- - spec/fixtures/lockfiles/1.0.18-do_postgres
322
- - spec/fixtures/lockfiles/1.0.18-mysql
323
- - spec/fixtures/lockfiles/1.0.18-mysql2
324
- - spec/fixtures/lockfiles/1.0.18-pg
325
- - spec/fixtures/lockfiles/1.0.6-no-bundler
326
- - spec/fixtures/lockfiles/1.0.6-with-any-bundler
327
- - spec/fixtures/lockfiles/1.0.6-with-bundler
328
- - spec/fixtures/lockfiles/1.15.1-no-bundler
329
- - spec/fixtures/lockfiles/1.3.1-rails-3.2.13
330
- - spec/fixtures/lockfiles/not-a-lockfile
331
- - spec/fixtures/repos/assets_detected/Gemfile
332
- - spec/fixtures/repos/assets_detected/Gemfile.lock
333
- - spec/fixtures/repos/assets_detected/README
334
- - spec/fixtures/repos/assets_detected/Rakefile
335
- - spec/fixtures/repos/assets_detected/app/assets/empty
336
- - spec/fixtures/repos/assets_detected/config/application.rb
337
- - spec/fixtures/repos/assets_detected/config/ey.yml
338
- - spec/fixtures/repos/assets_disabled/Gemfile
339
- - spec/fixtures/repos/assets_disabled/Gemfile.lock
340
- - spec/fixtures/repos/assets_disabled/README
341
- - spec/fixtures/repos/assets_disabled/Rakefile
342
- - spec/fixtures/repos/assets_disabled/app/assets/empty
343
- - spec/fixtures/repos/assets_disabled/config/application.rb
344
- - spec/fixtures/repos/assets_disabled/config/ey.yml
345
- - spec/fixtures/repos/assets_disabled_in_ey_yml/Gemfile
346
- - spec/fixtures/repos/assets_disabled_in_ey_yml/Gemfile.lock
347
- - spec/fixtures/repos/assets_disabled_in_ey_yml/README
348
- - spec/fixtures/repos/assets_disabled_in_ey_yml/Rakefile
349
- - spec/fixtures/repos/assets_disabled_in_ey_yml/app/assets/empty
350
- - spec/fixtures/repos/assets_disabled_in_ey_yml/config/application.rb
351
- - spec/fixtures/repos/assets_disabled_in_ey_yml/config/ey.yml
352
- - spec/fixtures/repos/assets_disabled_utf8/Gemfile
353
- - spec/fixtures/repos/assets_disabled_utf8/Gemfile.lock
354
- - spec/fixtures/repos/assets_disabled_utf8/README
355
- - spec/fixtures/repos/assets_disabled_utf8/Rakefile
356
- - spec/fixtures/repos/assets_disabled_utf8/app/assets/empty
357
- - spec/fixtures/repos/assets_disabled_utf8/config/application.rb
358
- - spec/fixtures/repos/assets_disabled_utf8/config/ey.yml
359
- - spec/fixtures/repos/assets_enabled_all/Gemfile
360
- - spec/fixtures/repos/assets_enabled_all/Gemfile.lock
361
- - spec/fixtures/repos/assets_enabled_all/README
362
- - spec/fixtures/repos/assets_enabled_all/app/assets/empty
363
- - spec/fixtures/repos/assets_enabled_all/config/application.rb
364
- - spec/fixtures/repos/assets_enabled_all/config/ey.yml
365
- - spec/fixtures/repos/assets_enabled_all/script/assets
366
- - spec/fixtures/repos/assets_enabled_all/tmp/obstruction
367
- - spec/fixtures/repos/assets_enabled_in_ey_yml/Gemfile
368
- - spec/fixtures/repos/assets_enabled_in_ey_yml/Gemfile.lock
369
- - spec/fixtures/repos/assets_enabled_in_ey_yml/README
370
- - spec/fixtures/repos/assets_enabled_in_ey_yml/Rakefile
371
- - spec/fixtures/repos/assets_enabled_in_ey_yml/config/ey.yml
372
- - spec/fixtures/repos/assets_enabled_util_only/Gemfile
373
- - spec/fixtures/repos/assets_enabled_util_only/Gemfile.lock
374
- - spec/fixtures/repos/assets_enabled_util_only/README
375
- - spec/fixtures/repos/assets_enabled_util_only/Rakefile
376
- - spec/fixtures/repos/assets_enabled_util_only/app/assets/empty
377
- - spec/fixtures/repos/assets_enabled_util_only/config/application.rb
378
- - spec/fixtures/repos/assets_enabled_util_only/config/ey.yml
379
- - spec/fixtures/repos/assets_error/Gemfile
380
- - spec/fixtures/repos/assets_error/Gemfile.lock
381
- - spec/fixtures/repos/assets_error/README
382
- - spec/fixtures/repos/assets_error/Rakefile
383
- - spec/fixtures/repos/assets_error/app/assets/empty
384
- - spec/fixtures/repos/assets_error/config/application.rb
385
- - spec/fixtures/repos/assets_error/config/ey.yml
386
- - spec/fixtures/repos/assets_in_hook/Gemfile
387
- - spec/fixtures/repos/assets_in_hook/Gemfile.lock
388
- - spec/fixtures/repos/assets_in_hook/README
389
- - spec/fixtures/repos/assets_in_hook/Rakefile
390
- - spec/fixtures/repos/assets_in_hook/app/assets/empty
391
- - spec/fixtures/repos/assets_in_hook/config/application.rb
392
- - spec/fixtures/repos/assets_in_hook/config/ey.yml
393
- - spec/fixtures/repos/assets_in_hook/deploy/before_compile_assets.rb
394
- - spec/fixtures/repos/bundle_fails/Gemfile
395
- - spec/fixtures/repos/bundle_fails/README
396
- - spec/fixtures/repos/bundle_fails/deploy/after_bundle.rb
397
- - spec/fixtures/repos/bundler_disabled/Gemfile
398
- - spec/fixtures/repos/bundler_disabled/Gemfile.lock
399
- - spec/fixtures/repos/bundler_disabled/README
400
- - spec/fixtures/repos/bundler_disabled/config/ey.yml
401
- - spec/fixtures/repos/bundler_disabled/deploy/after_bundle.rb
402
- - spec/fixtures/repos/bundler_disabled/deploy/before_bundle.rb
403
- - spec/fixtures/repos/bundler_old/Gemfile
404
- - spec/fixtures/repos/bundler_old/Gemfile.lock
405
- - spec/fixtures/repos/bundler_old/README
406
- - spec/fixtures/repos/default/Gemfile
407
- - spec/fixtures/repos/default/Gemfile.lock
408
- - spec/fixtures/repos/default/README
409
- - spec/fixtures/repos/default/ey.yml
410
- - spec/fixtures/repos/executable_hooks/README
411
- - spec/fixtures/repos/executable_hooks/deploy/before_restart
412
- - spec/fixtures/repos/executable_hooks_not_executable/README
413
- - spec/fixtures/repos/executable_hooks_not_executable/deploy/before_restart
414
- - spec/fixtures/repos/ey_yml/Gemfile
415
- - spec/fixtures/repos/ey_yml/Gemfile.lock
416
- - spec/fixtures/repos/ey_yml/README
417
- - spec/fixtures/repos/ey_yml/config/ey.yml
418
- - spec/fixtures/repos/ey_yml/deploy/before_migrate.rb
419
- - spec/fixtures/repos/ey_yml_alt/Gemfile
420
- - spec/fixtures/repos/ey_yml_alt/Gemfile.lock
421
- - spec/fixtures/repos/ey_yml_alt/README
422
- - spec/fixtures/repos/ey_yml_alt/deploy/before_migrate.rb
423
- - spec/fixtures/repos/ey_yml_alt/ey.yml
424
- - spec/fixtures/repos/hook_fails/README
425
- - spec/fixtures/repos/hook_fails/deploy/before_deploy.rb
426
- - spec/fixtures/repos/hooks/README
427
- - spec/fixtures/repos/hooks/deploy/after_bundle.rb
428
- - spec/fixtures/repos/hooks/deploy/after_compile_assets.rb
429
- - spec/fixtures/repos/hooks/deploy/after_deploy.rb
430
- - spec/fixtures/repos/hooks/deploy/after_migrate.rb
431
- - spec/fixtures/repos/hooks/deploy/after_restart.rb
432
- - spec/fixtures/repos/hooks/deploy/after_symlink.rb
433
- - spec/fixtures/repos/hooks/deploy/before_bundle.rb
434
- - spec/fixtures/repos/hooks/deploy/before_compile_assets.rb
435
- - spec/fixtures/repos/hooks/deploy/before_deploy.rb
436
- - spec/fixtures/repos/hooks/deploy/before_migrate.rb
437
- - spec/fixtures/repos/hooks/deploy/before_restart.rb
438
- - spec/fixtures/repos/hooks/deploy/before_symlink.rb
439
- - spec/fixtures/repos/multi_dep_manager/README
440
- - spec/fixtures/repos/multi_dep_manager/composer.json
441
- - spec/fixtures/repos/multi_dep_manager/composer.lock
442
- - spec/fixtures/repos/multi_dep_manager/package.json
443
- - spec/fixtures/repos/multi_dep_manager/public/index.php
444
- - spec/fixtures/repos/no_ey_config/Gemfile
445
- - spec/fixtures/repos/no_ey_config/Gemfile.lock
446
- - spec/fixtures/repos/no_ey_config/README
447
- - spec/fixtures/repos/no_ey_config/ey.yml
448
- - spec/fixtures/repos/no_ey_config_no_warning/Gemfile
449
- - spec/fixtures/repos/no_ey_config_no_warning/Gemfile.lock
450
- - spec/fixtures/repos/no_ey_config_no_warning/README
451
- - spec/fixtures/repos/no_ey_config_no_warning/ey.yml
452
- - spec/fixtures/repos/no_gemfile_lock/Gemfile
453
- - spec/fixtures/repos/no_gemfile_lock/README
454
- - spec/fixtures/repos/no_gemfile_lock/ey.yml
455
- - spec/fixtures/repos/nodejs/README
456
- - spec/fixtures/repos/nodejs/package.json
457
- - spec/fixtures/repos/not_bundled/README
458
- - spec/fixtures/repos/npm_disabled/README
459
- - spec/fixtures/repos/npm_disabled/config/ey.yml
460
- - spec/fixtures/repos/npm_disabled/package.json
461
- - spec/fixtures/repos/php_composer_disabled/README
462
- - spec/fixtures/repos/php_composer_disabled/composer.json
463
- - spec/fixtures/repos/php_composer_disabled/composer.lock
464
- - spec/fixtures/repos/php_composer_disabled/config/ey.yml
465
- - spec/fixtures/repos/php_composer_disabled/public/index.php
466
- - spec/fixtures/repos/php_composer_lock/README
467
- - spec/fixtures/repos/php_composer_lock/composer.json
468
- - spec/fixtures/repos/php_composer_lock/composer.lock
469
- - spec/fixtures/repos/php_composer_lock/public/index.php
470
- - spec/fixtures/repos/php_no_composer_lock/README
471
- - spec/fixtures/repos/php_no_composer_lock/composer.json
472
- - spec/fixtures/repos/php_no_composer_lock/public/index.php
473
- - spec/fixtures/repos/public_system/Gemfile
474
- - spec/fixtures/repos/public_system/Gemfile.lock
475
- - spec/fixtures/repos/public_system/README
476
- - spec/fixtures/repos/public_system/ey.yml
477
- - spec/fixtures/repos/public_system/public/system/cant_touch_this.txt
478
- - spec/fixtures/repos/sqlite3/Gemfile
479
- - spec/fixtures/repos/sqlite3/Gemfile.lock
480
- - spec/fixtures/repos/sqlite3/README
481
- - spec/fixtures/retwisj.war
482
- - spec/fixtures/valid_hook.rb
483
- - spec/git_strategy_spec.rb
484
- - spec/lockfile_parser_spec.rb
485
- - spec/maintenance_spec.rb
486
- - spec/multi_dependency_manager_spec.rb
487
- - spec/nodejs_deploy_spec.rb
488
- - spec/php_deploy_spec.rb
489
- - spec/platform_configure_spec.rb
490
- - spec/rails31_deploy_spec.rb
491
- - spec/restart_spec.rb
492
- - spec/rollback_spec.rb
493
- - spec/server_spec.rb
494
- - spec/services_deploy_spec.rb
495
- - spec/shell_spec.rb
496
- - spec/source/archive_spec.rb
497
- - spec/source/git_spec.rb
498
- - spec/spec_helper.rb
499
- - spec/sqlite3_deploy_spec.rb
500
- - spec/support/integration.rb
501
- - spec/support/source_doubles.rb
502
- - spec/support/timecop.rb
503
- - spec/symlink_spec.rb
504
323
  homepage: http://github.com/engineyard/engineyard-serverside
505
324
  licenses:
506
325
  - MIT
@@ -520,207 +339,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
520
339
  - !ruby/object:Gem::Version
521
340
  version: 1.3.6
522
341
  requirements: []
523
- rubyforge_project:
524
- rubygems_version: 2.7.6
342
+ rubygems_version: 3.0.3
525
343
  signing_key:
526
344
  specification_version: 4
527
345
  summary: A gem that deploys ruby applications on EY Cloud instances
528
- test_files:
529
- - spec/spec_helper.rb
530
- - spec/rails31_deploy_spec.rb
531
- - spec/basic_deploy_spec.rb
532
- - spec/source/archive_spec.rb
533
- - spec/source/git_spec.rb
534
- - spec/maintenance_spec.rb
535
- - spec/archive_deploy_spec.rb
536
- - spec/rollback_spec.rb
537
- - spec/bundler_deploy_spec.rb
538
- - spec/restart_spec.rb
539
- - spec/symlink_spec.rb
540
- - spec/deploy_hook_spec.rb
541
- - spec/platform_configure_spec.rb
542
- - spec/services_deploy_spec.rb
543
- - spec/sqlite3_deploy_spec.rb
544
- - spec/deprecation_spec.rb
545
- - spec/server_spec.rb
546
- - spec/git_strategy_spec.rb
547
- - spec/fixtures/valid_hook.rb
548
- - spec/fixtures/invalid_hook.rb
549
- - spec/fixtures/gitrepo.tar.gz
550
- - spec/fixtures/lockfiles/1.0.18-mysql2
551
- - spec/fixtures/lockfiles/1.0.18-do_postgres
552
- - spec/fixtures/lockfiles/0.9-with-bundler
553
- - spec/fixtures/lockfiles/1.0.18-do_mysql
554
- - spec/fixtures/lockfiles/1.0.18-pg
555
- - spec/fixtures/lockfiles/1.15.1-no-bundler
556
- - spec/fixtures/lockfiles/1.0-no-bundler
557
- - spec/fixtures/lockfiles/1.0.18-mysql
558
- - spec/fixtures/lockfiles/1.0.0.rc.1-with-bundler
559
- - spec/fixtures/lockfiles/not-a-lockfile
560
- - spec/fixtures/lockfiles/0.9-no-bundler
561
- - spec/fixtures/lockfiles/1.0.6-no-bundler
562
- - spec/fixtures/lockfiles/1.0.6-with-any-bundler
563
- - spec/fixtures/lockfiles/1.0.6-with-bundler
564
- - spec/fixtures/lockfiles/1.3.1-rails-3.2.13
565
- - spec/fixtures/repos/ey_yml_alt/Gemfile
566
- - spec/fixtures/repos/ey_yml_alt/deploy/before_migrate.rb
567
- - spec/fixtures/repos/ey_yml_alt/ey.yml
568
- - spec/fixtures/repos/ey_yml_alt/Gemfile.lock
569
- - spec/fixtures/repos/ey_yml_alt/README
570
- - spec/fixtures/repos/php_composer_lock/composer.json
571
- - spec/fixtures/repos/php_composer_lock/composer.lock
572
- - spec/fixtures/repos/php_composer_lock/README
573
- - spec/fixtures/repos/php_composer_lock/public/index.php
574
- - spec/fixtures/repos/assets_enabled_util_only/Gemfile
575
- - spec/fixtures/repos/assets_enabled_util_only/app/assets/empty
576
- - spec/fixtures/repos/assets_enabled_util_only/Rakefile
577
- - spec/fixtures/repos/assets_enabled_util_only/config/application.rb
578
- - spec/fixtures/repos/assets_enabled_util_only/config/ey.yml
579
- - spec/fixtures/repos/assets_enabled_util_only/Gemfile.lock
580
- - spec/fixtures/repos/assets_enabled_util_only/README
581
- - spec/fixtures/repos/hook_fails/deploy/before_deploy.rb
582
- - spec/fixtures/repos/hook_fails/README
583
- - spec/fixtures/repos/bundler_disabled/Gemfile
584
- - spec/fixtures/repos/bundler_disabled/deploy/before_bundle.rb
585
- - spec/fixtures/repos/bundler_disabled/deploy/after_bundle.rb
586
- - spec/fixtures/repos/bundler_disabled/config/ey.yml
587
- - spec/fixtures/repos/bundler_disabled/Gemfile.lock
588
- - spec/fixtures/repos/bundler_disabled/README
589
- - spec/fixtures/repos/no_ey_config_no_warning/Gemfile
590
- - spec/fixtures/repos/no_ey_config_no_warning/ey.yml
591
- - spec/fixtures/repos/no_ey_config_no_warning/Gemfile.lock
592
- - spec/fixtures/repos/no_ey_config_no_warning/README
593
- - spec/fixtures/repos/assets_disabled_in_ey_yml/Gemfile
594
- - spec/fixtures/repos/assets_disabled_in_ey_yml/app/assets/empty
595
- - spec/fixtures/repos/assets_disabled_in_ey_yml/Rakefile
596
- - spec/fixtures/repos/assets_disabled_in_ey_yml/config/application.rb
597
- - spec/fixtures/repos/assets_disabled_in_ey_yml/config/ey.yml
598
- - spec/fixtures/repos/assets_disabled_in_ey_yml/Gemfile.lock
599
- - spec/fixtures/repos/assets_disabled_in_ey_yml/README
600
- - spec/fixtures/repos/ey_yml/Gemfile
601
- - spec/fixtures/repos/ey_yml/deploy/before_migrate.rb
602
- - spec/fixtures/repos/ey_yml/config/ey.yml
603
- - spec/fixtures/repos/ey_yml/Gemfile.lock
604
- - spec/fixtures/repos/ey_yml/README
605
- - spec/fixtures/repos/php_composer_disabled/composer.json
606
- - spec/fixtures/repos/php_composer_disabled/composer.lock
607
- - spec/fixtures/repos/php_composer_disabled/config/ey.yml
608
- - spec/fixtures/repos/php_composer_disabled/README
609
- - spec/fixtures/repos/php_composer_disabled/public/index.php
610
- - spec/fixtures/repos/assets_enabled_in_ey_yml/Gemfile
611
- - spec/fixtures/repos/assets_enabled_in_ey_yml/Rakefile
612
- - spec/fixtures/repos/assets_enabled_in_ey_yml/config/ey.yml
613
- - spec/fixtures/repos/assets_enabled_in_ey_yml/Gemfile.lock
614
- - spec/fixtures/repos/assets_enabled_in_ey_yml/README
615
- - spec/fixtures/repos/default/Gemfile
616
- - spec/fixtures/repos/default/ey.yml
617
- - spec/fixtures/repos/default/Gemfile.lock
618
- - spec/fixtures/repos/default/README
619
- - spec/fixtures/repos/no_ey_config/Gemfile
620
- - spec/fixtures/repos/no_ey_config/ey.yml
621
- - spec/fixtures/repos/no_ey_config/Gemfile.lock
622
- - spec/fixtures/repos/no_ey_config/README
623
- - spec/fixtures/repos/assets_in_hook/Gemfile
624
- - spec/fixtures/repos/assets_in_hook/deploy/before_compile_assets.rb
625
- - spec/fixtures/repos/assets_in_hook/app/assets/empty
626
- - spec/fixtures/repos/assets_in_hook/Rakefile
627
- - spec/fixtures/repos/assets_in_hook/config/application.rb
628
- - spec/fixtures/repos/assets_in_hook/config/ey.yml
629
- - spec/fixtures/repos/assets_in_hook/Gemfile.lock
630
- - spec/fixtures/repos/assets_in_hook/README
631
- - spec/fixtures/repos/not_bundled/README
632
- - spec/fixtures/repos/assets_enabled_all/Gemfile
633
- - spec/fixtures/repos/assets_enabled_all/app/assets/empty
634
- - spec/fixtures/repos/assets_enabled_all/tmp/obstruction
635
- - spec/fixtures/repos/assets_enabled_all/config/application.rb
636
- - spec/fixtures/repos/assets_enabled_all/config/ey.yml
637
- - spec/fixtures/repos/assets_enabled_all/Gemfile.lock
638
- - spec/fixtures/repos/assets_enabled_all/README
639
- - spec/fixtures/repos/assets_enabled_all/script/assets
640
- - spec/fixtures/repos/multi_dep_manager/package.json
641
- - spec/fixtures/repos/multi_dep_manager/composer.json
642
- - spec/fixtures/repos/multi_dep_manager/composer.lock
643
- - spec/fixtures/repos/multi_dep_manager/README
644
- - spec/fixtures/repos/multi_dep_manager/public/index.php
645
- - spec/fixtures/repos/npm_disabled/package.json
646
- - spec/fixtures/repos/npm_disabled/config/ey.yml
647
- - spec/fixtures/repos/npm_disabled/README
648
- - spec/fixtures/repos/nodejs/package.json
649
- - spec/fixtures/repos/nodejs/README
650
- - spec/fixtures/repos/assets_disabled_utf8/Gemfile
651
- - spec/fixtures/repos/assets_disabled_utf8/app/assets/empty
652
- - spec/fixtures/repos/assets_disabled_utf8/Rakefile
653
- - spec/fixtures/repos/assets_disabled_utf8/config/application.rb
654
- - spec/fixtures/repos/assets_disabled_utf8/config/ey.yml
655
- - spec/fixtures/repos/assets_disabled_utf8/Gemfile.lock
656
- - spec/fixtures/repos/assets_disabled_utf8/README
657
- - spec/fixtures/repos/sqlite3/Gemfile
658
- - spec/fixtures/repos/sqlite3/Gemfile.lock
659
- - spec/fixtures/repos/sqlite3/README
660
- - spec/fixtures/repos/executable_hooks/deploy/before_restart
661
- - spec/fixtures/repos/executable_hooks/README
662
- - spec/fixtures/repos/assets_disabled/Gemfile
663
- - spec/fixtures/repos/assets_disabled/app/assets/empty
664
- - spec/fixtures/repos/assets_disabled/Rakefile
665
- - spec/fixtures/repos/assets_disabled/config/application.rb
666
- - spec/fixtures/repos/assets_disabled/config/ey.yml
667
- - spec/fixtures/repos/assets_disabled/Gemfile.lock
668
- - spec/fixtures/repos/assets_disabled/README
669
- - spec/fixtures/repos/public_system/Gemfile
670
- - spec/fixtures/repos/public_system/ey.yml
671
- - spec/fixtures/repos/public_system/Gemfile.lock
672
- - spec/fixtures/repos/public_system/README
673
- - spec/fixtures/repos/public_system/public/system/cant_touch_this.txt
674
- - spec/fixtures/repos/bundle_fails/Gemfile
675
- - spec/fixtures/repos/bundle_fails/deploy/after_bundle.rb
676
- - spec/fixtures/repos/bundle_fails/README
677
- - spec/fixtures/repos/php_no_composer_lock/composer.json
678
- - spec/fixtures/repos/php_no_composer_lock/README
679
- - spec/fixtures/repos/php_no_composer_lock/public/index.php
680
- - spec/fixtures/repos/bundler_old/Gemfile
681
- - spec/fixtures/repos/bundler_old/Gemfile.lock
682
- - spec/fixtures/repos/bundler_old/README
683
- - spec/fixtures/repos/assets_error/Gemfile
684
- - spec/fixtures/repos/assets_error/app/assets/empty
685
- - spec/fixtures/repos/assets_error/Rakefile
686
- - spec/fixtures/repos/assets_error/config/application.rb
687
- - spec/fixtures/repos/assets_error/config/ey.yml
688
- - spec/fixtures/repos/assets_error/Gemfile.lock
689
- - spec/fixtures/repos/assets_error/README
690
- - spec/fixtures/repos/no_gemfile_lock/Gemfile
691
- - spec/fixtures/repos/no_gemfile_lock/ey.yml
692
- - spec/fixtures/repos/no_gemfile_lock/README
693
- - spec/fixtures/repos/executable_hooks_not_executable/deploy/before_restart
694
- - spec/fixtures/repos/executable_hooks_not_executable/README
695
- - spec/fixtures/repos/hooks/deploy/before_bundle.rb
696
- - spec/fixtures/repos/hooks/deploy/before_symlink.rb
697
- - spec/fixtures/repos/hooks/deploy/after_compile_assets.rb
698
- - spec/fixtures/repos/hooks/deploy/before_deploy.rb
699
- - spec/fixtures/repos/hooks/deploy/before_restart.rb
700
- - spec/fixtures/repos/hooks/deploy/after_restart.rb
701
- - spec/fixtures/repos/hooks/deploy/after_migrate.rb
702
- - spec/fixtures/repos/hooks/deploy/after_deploy.rb
703
- - spec/fixtures/repos/hooks/deploy/before_compile_assets.rb
704
- - spec/fixtures/repos/hooks/deploy/after_symlink.rb
705
- - spec/fixtures/repos/hooks/deploy/after_bundle.rb
706
- - spec/fixtures/repos/hooks/deploy/before_migrate.rb
707
- - spec/fixtures/repos/hooks/README
708
- - spec/fixtures/repos/assets_detected/Gemfile
709
- - spec/fixtures/repos/assets_detected/app/assets/empty
710
- - spec/fixtures/repos/assets_detected/Rakefile
711
- - spec/fixtures/repos/assets_detected/config/application.rb
712
- - spec/fixtures/repos/assets_detected/config/ey.yml
713
- - spec/fixtures/repos/assets_detected/Gemfile.lock
714
- - spec/fixtures/repos/assets_detected/README
715
- - spec/fixtures/retwisj.war
716
- - spec/php_deploy_spec.rb
717
- - spec/lockfile_parser_spec.rb
718
- - spec/configuration_spec.rb
719
- - spec/support/timecop.rb
720
- - spec/support/integration.rb
721
- - spec/support/source_doubles.rb
722
- - spec/custom_deploy_spec.rb
723
- - spec/ey_yml_customized_deploy_spec.rb
724
- - spec/multi_dependency_manager_spec.rb
725
- - spec/nodejs_deploy_spec.rb
726
- - spec/shell_spec.rb
346
+ test_files: []