Method: IOS::ProjectManipulator#createModulePath

Defined in:
lib/ios/module/setup/ProjectManipulator.rb

#createModulePathObject



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/ios/module/setup/ProjectManipulator.rb', line 54

def createModulePath
    @configurator.printMessage("Criando estrutura do módulo")
    @module_root_path = File.join(project_folder, [module_folder, @configurator.pod_name])
    @module_path = File.join(@module_root_path, @configurator.pod_name)

    # Create a new folder with pod name
    FileUtils.mkdir_p @module_path

    # Create a new folder with pod name interface
    if @has_interface == :yes
        FileUtils.mkdir_p @module_path + "Interface"
    end

    # Create a new folder with pod name test
    if @has_test == :yes
        FileUtils.mkdir_p @module_path + "Tests"
    end

    Dir.chdir @module_root_path
    @configurator.printDone
end