class Lokale::Main
Public Instance Methods
find_dir()
click to toggle source
# File lib/lokale.rb, line 69 def find_dir begin @project_path, @project_name = ProjectFinder::find_proj rescue Exception => e puts e exit end puts "Target Xcode project: '#{@project_name}'".green end
init_workers()
click to toggle source
# File lib/lokale.rb, line 94 def init_workers @agent = Lokale::Agent.new(@project_path, Config.get.macros) @reporter = Lokale::Reporter.new(@agent) end
read_config()
click to toggle source
# File lib/lokale.rb, line 80 def read_config Config.init Config.get.project_path = @project_path Config.get.project_name = @project_name begin Config.get.read_lokalefile rescue Exception => e puts "Error reading config file".red puts e exit end end
run()
click to toggle source
# File lib/lokale.rb, line 60 def run find_dir read_config init_workers run_actions end
run_actions()
click to toggle source
# File lib/lokale.rb, line 99 def run_actions Config.get.actions.each { |action| action.perform(@agent, @reporter) } end