Sha256: d6df93c6f69f12cf82272c093414e0d009137212817786f4d38f93e5a72607dc
Contents?: true
Size: 596 Bytes
Versions: 28
Compression:
Stored size: 596 Bytes
Contents
module Integrity class Notifier class Textfile < Notifier::Base def self.to_haml <<-haml %p.normal %label{ :for => "textfile_notifier_file" } File %input.text#textfile_notifier_file{ :name => "notifiers[Textfile][file]", :type => "text", :value => config["file"] } haml end def initialize(build, config={}) super @file = @config["file"] end def deliver! File.open(@file, "a") do |f| f.puts "=== #{short_message} ===" f.puts f.puts full_message end end end end end
Version data entries
28 entries across 28 versions & 8 rubygems