engineyard-serverside 2.5.0.cs5 → 2.5.0.cs6
Sign up to get free protection for your applications and to get access to all the features.
@@ -352,8 +352,8 @@ YML
|
|
352
352
|
[
|
353
353
|
["Set group write permissions", "chmod -R g+w #{paths.active_release}"],
|
354
354
|
["Remove public/system if symlinked", "if [ -L \"#{paths.public_system}\" ]; then rm -rf #{paths.public_system}; fi"],
|
355
|
-
["Remove symlinked shared directories", "rm -rf #{paths.active_log} #{paths.active_release}/tmp
|
356
|
-
["Create tmp directory", "mkdir -p #{paths.active_release}/tmp"],
|
355
|
+
["Remove symlinked shared directories", "rm -rf #{paths.active_log} #{paths.active_release}/tmp"],
|
356
|
+
["Create tmp directory", "mkdir -p #{paths.shared}/tmp && ln -nfs #{paths.shared}/tmp #{paths.active_release}/tmp"],
|
357
357
|
["Create public directory", "mkdir -p #{paths.public}"],
|
358
358
|
["Create config directory", "mkdir -p #{paths.active_release_config}"],
|
359
359
|
["Symlink shared log directory", "ln -nfs #{paths.shared_log} #{paths.active_log}"],
|
@@ -18,8 +18,9 @@ module EY
|
|
18
18
|
|
19
19
|
log_pathname = Pathname.new(options[:log_path])
|
20
20
|
log_pathname.unlink if log_pathname.exist? # start fresh
|
21
|
-
@logger = Logger.new(
|
21
|
+
@logger = Logger.new(log_pathname.to_s)
|
22
22
|
@logger.level = Logger::DEBUG # Always log to the file at debug, formatter hides debug for non-verbose
|
23
|
+
@logger.formatter = EY::Serverside::Shell::Formatter.new(@stdout, @stderr, start_time, @verbose)
|
23
24
|
end
|
24
25
|
|
25
26
|
def verbose?
|
@@ -56,9 +57,9 @@ module EY
|
|
56
57
|
# $ cmd blah do \
|
57
58
|
# > something more
|
58
59
|
# > end
|
59
|
-
def command_show(cmd)
|
60
|
-
def command_out(msg)
|
61
|
-
def command_err(msg)
|
60
|
+
def command_show(cmd) debug cmd.gsub(/^/,' > ').sub(/>/, '$') end
|
61
|
+
def command_out(msg) debug msg.gsub(/^/,' ') end
|
62
|
+
def command_err(msg) unknown msg.gsub(/^/,' ') end
|
62
63
|
|
63
64
|
def logged_system(cmd, server = nil)
|
64
65
|
EY::Serverside::Spawner.run(cmd, self, server)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engineyard-serverside
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.0.
|
4
|
+
version: 2.5.0.cs6
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-09-
|
12
|
+
date: 2014-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|