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

Version Path
alphasights-integrity-0.1.10 test/helpers/acceptance/textfile_notifier.rb
alphasights-integrity-0.1.9.3 test/helpers/acceptance/textfile_notifier.rb
alphasights-integrity-0.1.9.4 test/helpers/acceptance/textfile_notifier.rb
alphasights-integrity-0.1.9.5 test/helpers/acceptance/textfile_notifier.rb
alphasights-integrity-0.1.9.6 test/helpers/acceptance/textfile_notifier.rb
alphasights-integrity-0.1.9.7 test/helpers/acceptance/textfile_notifier.rb
alphasights-integrity-0.1.9.8 test/helpers/acceptance/textfile_notifier.rb
foca-integrity-0.1.9.0 test/helpers/acceptance/textfile_notifier.rb
foca-integrity-0.1.9.1 test/helpers/acceptance/textfile_notifier.rb
foca-integrity-0.1.9.2 test/helpers/acceptance/textfile_notifier.rb
foca-integrity-0.1.9.3 test/helpers/acceptance/textfile_notifier.rb
gforces-integrity-0.1.9.3 test/helpers/acceptance/textfile_notifier.rb
gforces-integrity-0.1.9.4 test/helpers/acceptance/textfile_notifier.rb
imbriaco-integrity-0.1.9.2.1 test/helpers/acceptance/textfile_notifier.rb
imbriaco-integrity-0.1.9.2 test/helpers/acceptance/textfile_notifier.rb
integrity-integrity-0.1.10 test/helpers/acceptance/textfile_notifier.rb
integrity-integrity-0.1.9.3 test/helpers/acceptance/textfile_notifier.rb
oliyoung-integrity-0.1.9.0 test/helpers/acceptance/textfile_notifier.rb
sr-integrity-0.1.8.1 test/helpers/acceptance/textfile_notifier.rb
sr-integrity-0.1.9.1 test/helpers/acceptance/textfile_notifier.rb