Sha256: 7ccc14502a9eacacb183995b3e9009b9a4a0be76cf36821768d702e2c2d385d5
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
require_relative "content_resolver" require "json" module HerokuAppInfo class Writer # # @param [Options] options # def initialize(options) @options = options end # # @param [String] app # @param [String, Hash] info # @param [String, nil] sort # @return [Integer] # def write(app, info, sort: nil) filename, content = ContentResolver.resolve(app, info, sort: sort) File.write(File.join(@options.out_dir, filename), content) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heroku-app-info-0.1.1 | lib/heroku_app_info/writer.rb |