moduleFastlanemoduleActionsclassCocoapodsAction<Actiondefself.run(params)Actions.verify_gem!('cocoapods')cmd=[]unlessparams[:podfile].nil?ifparams[:podfile].end_with?('Podfile')podfile_folder=File.dirname(params[:podfile])elsepodfile_folder=params[:podfile]endcmd<<["cd '#{podfile_folder}' &&"]endcmd<<['bundle exec']ifFile.exist?('Gemfile')&¶ms[:use_bundle_exec]cmd<<['pod install']cmd<<'--no-clean'unlessparams[:clean]cmd<<'--no-integrate'unlessparams[:integrate]cmd<<'--no-repo-update'unlessparams[:repo_update]cmd<<'--silent'ifparams[:silent]cmd<<'--verbose'ifparams[:verbose]cmd<<'--no-ansi'unlessparams[:ansi]Actions.sh(cmd.join(' '))enddefself.description"Runs `pod install` for the project"enddefself.available_options[FastlaneCore::ConfigItem.new(key: :clean,env_name: "FL_COCOAPODS_CLEAN",description: "Remove SCM directories",is_string: false,default_value: true),FastlaneCore::ConfigItem.new(key: :integrate,env_name: "FL_COCOAPODS_INTEGRATE",description: "Integrate the Pods libraries into the Xcode project(s)",is_string: false,default_value: true),FastlaneCore::ConfigItem.new(key: :repo_update,env_name: "FL_COCOAPODS_REPO_UPDATE",description: "Run `pod repo update` before install",is_string: false,default_value: true),FastlaneCore::ConfigItem.new(key: :silent,env_name: "FL_COCOAPODS_SILENT",description: "Show nothing",is_string: false,default_value: false),FastlaneCore::ConfigItem.new(key: :verbose,env_name: "FL_COCOAPODS_VERBOSE",description: "Show more debugging information",is_string: false,default_value: false),FastlaneCore::ConfigItem.new(key: :ansi,env_name: "FL_COCOAPODS_ANSI",description: "Show output with ANSI codes",is_string: false,default_value: true),FastlaneCore::ConfigItem.new(key: :use_bundle_exec,env_name: "FL_COCOAPODS_USE_BUNDLE_EXEC",description: "Use bundle exec when there is a Gemfile presented",is_string: false,default_value: true),FastlaneCore::ConfigItem.new(key: :podfile,env_name: "FL_COCOAPODS_PODFILE",description: "Explicitly specify the path to the Cocoapods' Podfile. You can either set it to the Podfile's path or to the folder containing the Podfile file",optional: true,is_string: true,verify_block: procdo|value|raise"Could not find Podfile".redunlessFile.exist?(value)||Helper.test?end)]enddefself.is_supported?(platform)[:ios,:mac].include?platformenddefself.authors["KrauseFx","tadpol","birmacher","Liquidsoul"]endendendend