class PodsOrz::PodOrzconfigParse

Attributes

app_release_version[RW]
branch_author_suffix[RW]
file_binaryrepo_name[RW]
file_coderepo_name[RW]
file_devpods_name[RW]
fix_pod_list[RW]
is_all_binary[RW]
remote_url_codespec[RW]
remote_url_sourcecode[RW]
static_lib_list[RW]
will_package_list[RW]

Public Class Methods

new(main_path) click to toggle source
# File lib/podsorz/core/Config/pod_orzconfig_parse.rb, line 8
def initialize(main_path)
        orzconfig_path = File.expand_path("PodsOrzConfig.rb", main_path)
        orzconfig_result = File.exist?(orzconfig_path)

        unless orzconfig_result
                Logger.error("PodsOrzConfig.rb is not found. Please 'podsorz setup' first") 
                exit()
        end
        
        require orzconfig_path

        @app_release_version = GitConfig::APP_RELEASE_VERSION
        @app_release_version = "" if @app_release_version.nil?

        @branch_author_suffix = GitConfig::BRANCH_AUTHOR_SUFFIX
        @branch_author_suffix = "" if @branch_author_suffix.nil?

        @remote_url_sourcecode = GitConfig::REMOTE_URL_SOURCECODE
        @remote_url_sourcecode = "" if @remote_url_sourcecode.nil?

        @remote_url_codespec = GitConfig::REMOTE_URL_CODESPEC
        @remote_url_codespec = "" if @remote_url_codespec.nil?

        @file_devpods_name = FileConfig::FILE_DEVPODS_NAME
        @file_devpods_name = "" if @file_devpods_name.nil?

        @file_coderepo_name = FileConfig::FILE_CODEREPO_NAME
        @file_coderepo_name = "" if @file_coderepo_name.nil?

        @file_binaryrepo_name = FileConfig::FILE_BINARYREPO_NAME
        @file_binaryrepo_name = "" if @file_binaryrepo_name.nil?

        @fix_pod_list = $FIX_POD_LIST
        @fix_pod_list = [] if @fix_pod_list.nil?

        @is_all_binary = $is_all_binary
        @is_all_binary = false if @is_all_binary.nil?

        @static_lib_list = $static_lib_list
        @static_lib_list = [] if @static_lib_list.nil?

        @will_package_list = $will_package_list
        @will_package_list = [] if @will_package_list.nil?
end