Sha256: 78b64b1c006ada8bb765a195cb0a7444c3a22310188488790d70355da1a06d6b

Contents?: true

Size: 317 Bytes

Versions: 7

Compression:

Stored size: 317 Bytes

Contents

require 'shhh/app/output/base'
module Shhh
  module App
    module Output
      class File < ::Shhh::App::Output::Base

        required_option :output


        def output_proc
          ->(data) {
            ::File.open(opts[:output], 'w') { |f| f.write(data) }
          }
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shhh-1.7.0 lib/shhh/app/output/file.rb
shhh-1.6.5 lib/shhh/app/output/file.rb
shhh-1.6.4 lib/shhh/app/output/file.rb
shhh-1.6.3 lib/shhh/app/output/file.rb
shhh-1.6.2 lib/shhh/app/output/file.rb
shhh-1.6.1 lib/shhh/app/output/file.rb
shhh-1.5.4 lib/shhh/app/output/file.rb