class Object

Public Instance Methods

announced_application_name() click to toggle source
# File lib/mina/hipchat/tasks.rb, line 44
def announced_application_name
        "".tap do |output|
                output << hipchat_application if hipchat_application
                output << " #{branch}" if branch
                output << " (#{short_revision})" if short_revision
        end
end
post_hipchat_message(msg) click to toggle source
# File lib/mina/hipchat/tasks.rb, line 52
def post_hipchat_message(msg)
        # Send message via official library
        client = HipChat::Client.new(hipchat_token, :api_version => 'v2', :notify => hipchat_notify)
        client[hipchat_room].send('mina', msg, :color => hipchat_color)
end
short_revision() click to toggle source
# File lib/mina/hipchat/tasks.rb, line 40
def short_revision
        deployed_revision[0..7] if deployed_revision
end