Method: CovaIO#_io_open_app_source

Defined in:
lib/covaio.rb

#_io_open_app_source(name) ⇒ Object



89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/covaio.rb', line 89

def _io_open_app_source(name)
	if not _io_app_exists name
		_log_info "Looks like the app #{name} does not exist. Please create if first."
		_log_line_error
		return false
	end

	app_project = "#{@dir_cova_apps_home}/#{name}/ios/cova.xcworkspace"
	if not File.exist?(app_project)
		_log_info "Looks like the app #{name} was never build. Please build it first."
		return false
	end

	_io_exec "open #{app_project}"
	return true
end