Sha256: ff9595dd8a44421283e32a6cb9ea340446e542ea7701c262012470b5813ff6dc
Contents?: true
Size: 1.78 KB
Versions: 1
Compression:
Stored size: 1.78 KB
Contents
# The MIT License # Copyright © 2009 Magnus Bergmark # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. # # In its current form, this class is not much more than simple glue between the monitor and the # whole notification system. Its primary use right now is to separate the logic properly. It # will hopefully be refactored quite a bit in the future. # class GitRemoteMonitor::Notifier def initialize @notifier = GitRemoteMonitor::Notifiers.preferred_notifier.new end # FIXME: This method should probably be refactored later on. We shouldn't need this many arguments. def notify_commits(monitor, branch_name, local_commits, remote_commits) status = GitRemoteMonitor::Status.new(monitor, branch_name, local_commits, remote_commits) @notifier.send_notification!(status) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Mange-git-remote-monitor-0.1.2 | lib/git_remote_monitor/notifier.rb |