I installed Slack-Nofity by cpanm command like following:
Then, I called the module according to the example
#!/usr/bin/perl
use Slack::Notify;
print($ENV{'SLACK_NOTIFY_URL'}."\n");
my $n = Slack::Notify->new(
hook_url => $ENV{'SLACK_NOTIFY_URL'}
);
my $ret = $n->post(
text => "デプロイ完了"
);
use JSON;
print(to_json($ret));
I got following messages.
{
"status":599,
"reason":"Internal Exception",
"success":"",
"content":"IO::Socket::SSL 1.42 must be installed for https support\nNet::SSLeay 1.49 must be installed for https support\n",
"headers":{
"content-type":"text/plain",
"content-length":110
},
"url":"https://hooks.slack.com/services/xxx/xxx"
}
I think Makefile.PL should have those packages in PREREQ_PM clause.
I installed
Slack-Nofityby cpanm command like following:Then, I called the module according to the example
I got following messages.
{ "status":599, "reason":"Internal Exception", "success":"", "content":"IO::Socket::SSL 1.42 must be installed for https support\nNet::SSLeay 1.49 must be installed for https support\n", "headers":{ "content-type":"text/plain", "content-length":110 }, "url":"https://hooks.slack.com/services/xxx/xxx" }I think Makefile.PL should have those packages in PREREQ_PM clause.