Sha256: 5fd64291a5bd3e216c384f0cd650ff26bae33678924bc517c731e8e2b5063b08

Contents?: true

Size: 380 Bytes

Versions: 13

Compression:

Stored size: 380 Bytes

Contents

require 'sym/app/output/base'
module Sym
  module App
    module Output
      class File < ::Sym::App::Output::Base

        required_option :output

        def output_proc
          Sym::App.log :info, "writing to a file #{opts[:output]}"
          ->(data) {
            ::File.open(opts[:output], 'w') { |f| f.write(data) }
          }
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sym-3.0.1 lib/sym/app/output/file.rb
sym-3.0.0 lib/sym/app/output/file.rb
sym-2.10.0 lib/sym/app/output/file.rb
sym-2.8.5 lib/sym/app/output/file.rb
sym-2.8.4 lib/sym/app/output/file.rb
sym-2.8.2 lib/sym/app/output/file.rb
sym-2.8.1 lib/sym/app/output/file.rb
sym-2.8.0 lib/sym/app/output/file.rb
sym-2.7.0 lib/sym/app/output/file.rb
sym-2.6.3 lib/sym/app/output/file.rb
sym-2.6.2 lib/sym/app/output/file.rb
sym-2.6.1 lib/sym/app/output/file.rb
sym-2.6.0 lib/sym/app/output/file.rb