class Fastlane::Helper::BaseAdapter
Public Instance Methods
allowed_extensions()
click to toggle source
All the extensions allowed for that adapter
This method is also used to determine what to load from the server
Must be written with the '.' like '.xml'
@return [Array] an array of all the allowed extensions
# File lib/fastlane/plugin/simple_loco/helper/simple_loco_helper.rb, line 251 def allowed_extensions return [] end
default_file_name()
click to toggle source
Returns the default name
# File lib/fastlane/plugin/simple_loco/helper/simple_loco_helper.rb, line 266 def default_file_name return '' end
directory(locale, is_default)
click to toggle source
Returns res directory for the mapped locale
Base implementation does nothing
@param [String] the mapped locale name @param [true] whether the locale is the default one
# File lib/fastlane/plugin/simple_loco/helper/simple_loco_helper.rb, line 261 def directory(locale, is_default) return '' end
write_locale(directory, result, locale, extension, is_default)
click to toggle source
Writes the locale to a directory
# File lib/fastlane/plugin/simple_loco/helper/simple_loco_helper.rb, line 271 def write_locale(directory, result, locale, extension, is_default) path = File.join(directory, default_file_name + extension) File.write path, result end