Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

self.default_io_proc has been added to capistrano

Also, don't use CapistranoMonkey::Configuration as it messes with capistrano/ext/multistage (Capistrano::Configuration.instance.load trigger seems not to like CapistranoMonkey::Configuration)
  • Loading branch information...
commit 3dbc6198173415bf108f6be01b1c3cbb1821edbd 1 parent 95889ec
@goodtouch goodtouch authored
Showing with 2 additions and 18 deletions.
  1. +0 −16 lib/capistrano_monkey/configuration.rb
  2. +2 −2 lib/strano/cli.rb
View
16 lib/capistrano_monkey/configuration.rb
@@ -1,16 +0,0 @@
-# Implementation of Capistrano::Configuration that uses a Strano::Logger as the
-# logger in order to log to the DB.
-module CapistranoMonkey
- class Configuration < Capistrano::Configuration
-
- # default callback to handle all output that
- # the other callbacks not explicitly handle.
- def self.default_io_proc
- Proc.new do |ch, stream, out|
- level = stream == :err ? :important : :info
- ch[:options][:logger].send(level, out, "#{stream} :: #{ch[:server]}")
- end
- end
-
- end
-end
View
4 lib/strano/cli.rb
@@ -19,7 +19,7 @@ def self.parse(logger, args)
# Override in order to use DB logger
def instantiate_configuration(options={})
- config = CapistranoMonkey::Configuration.new(options)
+ config = Capistrano::Configuration.new(options)
config.logger = logger
config
end
@@ -37,4 +37,4 @@ def handle_error(error)
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.