Class: Lokale::Main
- Inherits:
-
Object
- Object
- Lokale::Main
- Defined in:
- lib/lokale.rb
Instance Method Summary collapse
Instance Method Details
#find_dir ⇒ Object
69 70 71 72 73 74 75 76 77 78 |
# 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 ⇒ Object
94 95 96 97 |
# 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 ⇒ Object
80 81 82 83 84 85 86 87 88 89 90 91 92 |
# 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 ⇒ Object
60 61 62 63 64 65 |
# File 'lib/lokale.rb', line 60 def run find_dir read_config init_workers run_actions end |