From 3203f5b9f5f2b7fef594855a8a9403f9d17ff1b0 Mon Sep 17 00:00:00 2001 From: Kotaro Mochizuki Date: Wed, 4 Apr 2018 12:38:45 +0900 Subject: [PATCH] Add to_s for local_user --- lib/capistrano/tasks/slackify.cap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/tasks/slackify.cap b/lib/capistrano/tasks/slackify.cap index caed0f2..ea1ddb3 100644 --- a/lib/capistrano/tasks/slackify.cap +++ b/lib/capistrano/tasks/slackify.cap @@ -61,7 +61,7 @@ namespace :load do set :slack_username, 'Capistrano' set :slack_emoji, ':ghost:' set :slack_parse, 'default' - set :slack_user, -> { local_user.strip } + set :slack_user, -> { local_user.to_s.strip } set :slack_fields, ['status', 'stage', 'branch', 'revision', 'hosts'] set :slack_custom_field_mapping, {} set :slack_mrkdwn_in, []