Sha256: 8b8aabba91dee168d9c62dd89b0e39e82a3258492cab9ca1fcd78b60215a51c4
Contents?: true
Size: 475 Bytes
Versions: 28
Compression:
Stored size: 475 Bytes
Contents
module Locomotive::Wagon class PullTranslationsCommand < PullBaseCommand def _pull translations = api_client.translations.all.inject({}) do |hash, translation| hash[translation.key] = translation.values hash end unless translations.empty? write_to_file(translations_filepath, dump(translations)) end end private def translations_filepath File.join('config', 'translations.yml') end end end
Version data entries
28 entries across 28 versions & 1 rubygems