engineyard-serverside 2.6.12.prewut5 → 2.6.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -45,7 +45,6 @@ module EY
|
|
45
45
|
raise "Unknown value #{enabled.inspect} for option #{name.inspect}. Expected [true, false, detect]"
|
46
46
|
end
|
47
47
|
end
|
48
|
-
puts "select_managers found #{managers.inspect}"
|
49
48
|
managers.compact
|
50
49
|
end
|
51
50
|
|
@@ -65,16 +64,12 @@ module EY
|
|
65
64
|
# Verify application state with respect to dependency management.
|
66
65
|
# Warn if there is anything wrong with the dependency manager.
|
67
66
|
def check
|
68
|
-
each { |m|
|
69
|
-
puts "running check on #{m.inspect}"
|
70
|
-
m.check }
|
67
|
+
each { |m| m.check }
|
71
68
|
end
|
72
69
|
|
73
70
|
# Install dependencies for each of the dependency managers.
|
74
71
|
def install
|
75
|
-
each { |m|
|
76
|
-
puts "running install on #{m.inspect}"
|
77
|
-
m.install }
|
72
|
+
each { |m| m.install }
|
78
73
|
end
|
79
74
|
|
80
75
|
# Assume application is not using sqlite3 unless a dependency manager
|
@@ -11,17 +11,11 @@ module EY
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def detected?
|
14
|
-
puts "detecting..."
|
15
14
|
gemfile?
|
16
15
|
end
|
17
16
|
|
18
17
|
def gemfile?
|
19
|
-
|
20
|
-
puts "#{paths.gemfile.inspect}"
|
21
|
-
puts "#{paths.gemfile.to_s}"
|
22
|
-
found = paths.gemfile.exist?
|
23
|
-
puts "found gemfile? #{found}"
|
24
|
-
found
|
18
|
+
paths.gemfile.exist?
|
25
19
|
end
|
26
20
|
|
27
21
|
def check
|
@@ -30,9 +30,7 @@ module EY
|
|
30
30
|
callback(:before_deploy)
|
31
31
|
check_repository
|
32
32
|
create_revision_file
|
33
|
-
puts "should bundle now.."
|
34
33
|
run_with_callbacks(:bundle)
|
35
|
-
puts "should have bundled.."
|
36
34
|
setup_services
|
37
35
|
configure_platform
|
38
36
|
symlink_configs
|
@@ -94,12 +92,10 @@ module EY
|
|
94
92
|
end
|
95
93
|
|
96
94
|
def bundle
|
97
|
-
puts "bundle"
|
98
95
|
install_dependencies
|
99
96
|
end
|
100
97
|
|
101
98
|
def install_dependencies
|
102
|
-
puts "install_dependencies"
|
103
99
|
dependency_manager.install
|
104
100
|
end
|
105
101
|
|
@@ -120,18 +116,9 @@ module EY
|
|
120
116
|
end
|
121
117
|
|
122
118
|
def run_with_callbacks(task)
|
123
|
-
puts "running before_#{task}"
|
124
119
|
callback("before_#{task}")
|
125
|
-
puts "ran before_#{task}"
|
126
|
-
puts "running #{task}"
|
127
120
|
send(task)
|
128
|
-
puts "ran #{task}"
|
129
|
-
puts "running after_#{task}"
|
130
121
|
callback("after_#{task}")
|
131
|
-
puts "ran after_#{task}"
|
132
|
-
rescue => e
|
133
|
-
puts e.inspect
|
134
|
-
raise e
|
135
122
|
end
|
136
123
|
|
137
124
|
# task
|
@@ -561,7 +548,6 @@ defaults:
|
|
561
548
|
|
562
549
|
def dependency_manager
|
563
550
|
ensure_git_ssh_wrapper
|
564
|
-
puts "initialize DependencyManager with #{config.inspect}"
|
565
551
|
@dependency_manager ||= DependencyManager.new(servers, config, shell, self)
|
566
552
|
end
|
567
553
|
|
@@ -54,18 +54,7 @@ module EY
|
|
54
54
|
# Pathname#join is extremely inefficient.
|
55
55
|
# This implementation uses much less memory and way fewer objects.
|
56
56
|
def path(root, *parts)
|
57
|
-
|
58
|
-
found = Pathname.new(File.join(send(root).to_s, *parts))
|
59
|
-
puts "found #{found.inspect} -- exist: #{found.exist?}"
|
60
|
-
if parts.include?("Gemfile")
|
61
|
-
checkpath = found.to_s.split("/")[0...-1].join("/")
|
62
|
-
puts "ls #{checkpath}"
|
63
|
-
puts `ls -al #{checkpath}`
|
64
|
-
checkpath = found.to_s.split("/")[0...-2].join("/")
|
65
|
-
puts "ls #{checkpath}"
|
66
|
-
puts `ls -al #{checkpath}`
|
67
|
-
end
|
68
|
-
found
|
57
|
+
Pathname.new(File.join(send(root).to_s, *parts))
|
69
58
|
end
|
70
59
|
|
71
60
|
attr_reader :home, :deploy_root
|
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.12
|
5
|
-
prerelease:
|
4
|
+
version: 2.6.12
|
5
|
+
prerelease:
|
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-12-
|
12
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -48,17 +48,17 @@ dependencies:
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 4.2.2
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 4.2.2
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: timecop
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|