Sha256: 2340118ffad54981e4d7579ae45dec6f61babc875341fcd01dde589b3dd828bd
Contents?: true
Size: 541 Bytes
Versions: 25
Compression:
Stored size: 541 Bytes
Contents
module ContentfulMiddleman module LocalData class File class << self def thor=(thor) @thor = thor end def thor @thor end end def initialize(data, path) @data = data @path = path end def write self.class.thor.create_file(local_data_file_path, nil, {}) { @data } end def local_data_file_path base_path = LocalData::Store.base_path ::File.join(base_path, @path + ".yaml") end end end end
Version data entries
25 entries across 25 versions & 1 rubygems