module Icapps::Translations
Constants
- VERSION
Attributes
options[RW]
Public Class Methods
android?()
click to toggle source
# File lib/icapps/translations.rb, line 31 def android? Dir.glob('**/*.gradle').count > 0 end
config()
click to toggle source
# File lib/icapps/translations.rb, line 11 def config @config ||= Configuration.new end
import()
click to toggle source
# File lib/icapps/translations.rb, line 15 def import # Validate the configuration file. Abort when invalid. config.validate # Import the files. if xcode? puts '[VERBOSE] Detected an Xcode project.'.colorize(:white) if options[:verbose] Import::Xcode.import elsif android? puts '[VERBOSE] Detected an Android project with a .gradle file.'.colorize(:white) if options[:verbose] Import::Gradle.import else abort '[ERROR] No Xcode or Android gradle file detected.'.colorize(:red) unless @project_key end end
xcode?()
click to toggle source
# File lib/icapps/translations.rb, line 35 def xcode? Dir.glob('**/*.xcodeproj').count > 0 end