class Capistrano3::Notification::IRC

Public Instance Methods

notify(message) click to toggle source
# File lib/capistrano3/notification/irc.rb, line 6
def notify(message)
  ShoutBot.shout(url) { |irc| irc.say message } if enabled?
end

Private Instance Methods

channel() click to toggle source
# File lib/capistrano3/notification/irc.rb, line 20
def channel
  env.fetch(:irc_channel)
end
enabled?() click to toggle source
# File lib/capistrano3/notification/irc.rb, line 24
def enabled?
  user && host && port && channel && message
end
host() click to toggle source
# File lib/capistrano3/notification/irc.rb, line 12
def host
  env.fetch(:irc_host)
end
port() click to toggle source
# File lib/capistrano3/notification/irc.rb, line 16
def port
  env.fetch(:irc_port)
end
url() click to toggle source
# File lib/capistrano3/notification/irc.rb, line 28
def url
  "irc://#{user}@#{host}:#{port}/#{channel}"
end