diff options
| author | Ash McKenzie <amckenzie@gitlab.com> | 2019-04-02 17:10:43 +1100 |
|---|---|---|
| committer | Ash McKenzie <amckenzie@gitlab.com> | 2019-04-04 13:32:30 +1100 |
| commit | 02088137c28f7b822a7d979f985ca38f3e0583ef (patch) | |
| tree | ff0751e80326c26d4f07a5bca17f0363c9ad8c1e /lib/action | |
| parent | 3a79ac9d615e492af0d3f1e9545262e2ecf162aa (diff) | |
| download | gitlab-shell-02088137c28f7b822a7d979f985ca38f3e0583ef.tar.gz | |
Use write_stderr instead of $stderr.puts
Diffstat (limited to 'lib/action')
| -rw-r--r-- | lib/action/custom.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/action/custom.rb b/lib/action/custom.rb index a2f3d59..4efb0a8 100644 --- a/lib/action/custom.rb +++ b/lib/action/custom.rb @@ -1,10 +1,12 @@ require 'base64' require_relative '../http_helper' +require_relative '../console_helper' module Action class Custom include HTTPHelper + include ConsoleHelper class BaseError < StandardError; end class MissingPayloadError < BaseError; end @@ -105,7 +107,7 @@ module Action end def format_gitlab_output(str) - str.split("\n").map { |line| "> GitLab: #{line}" }.join("\n") + format_for_stderr(str.split("\n")).join("\n") end def validate! |
