Sha256: a136af80ae72bb34648267e3adfe4a0e98a5537af21315311bba643c289c152a
Contents?: true
Size: 500 Bytes
Versions: 40
Compression:
Stored size: 500 Bytes
Contents
module Locomotive::Wagon class PullContentAssetsCommand < PullBaseCommand def _pull api_client.content_assets.all.each do |asset| write_content_asset(asset) end end def write_content_asset(asset) binary = get_asset_binary(asset.url) write_to_file(content_asset_filepath(asset), binary) end private def content_asset_filepath(asset) File.join('public', 'samples', 'all', asset.content_type_text, asset.filename) end end end
Version data entries
40 entries across 40 versions & 1 rubygems