Class: Fastlane::Actions::CocoapodsAction
- Inherits:
-
Fastlane::Action
- Object
- Fastlane::Action
- Fastlane::Actions::CocoapodsAction
- Defined in:
- lib/fastlane/actions/install_cocoapods.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .run(params) ⇒ Object
Methods inherited from Fastlane::Action
action_name, author, details, output, sh, step_text
Class Method Details
.authors ⇒ Object
62 63 64 |
# File 'lib/fastlane/actions/install_cocoapods.rb', line 62 def self. ["KrauseFx", "tadpol", "birmacher"] end |
.available_options ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/fastlane/actions/install_cocoapods.rb', line 24 def self. [ FastlaneCore::ConfigItem.new(key: :clean, env_name: "FL_COCOAPODS_CLEAN", description: "Remove SCM directories", default_value: true), FastlaneCore::ConfigItem.new(key: :integrate, env_name: "FL_COCOAPODS_INTEGRATE", description: "Integrate the Pods libraries into the Xcode project(s)", default_value: true), FastlaneCore::ConfigItem.new(key: :repo_update, env_name: "FL_COCOAPODS_REPO_UPDATE", description: "Run `pod repo update` before install", default_value: true), FastlaneCore::ConfigItem.new(key: :silent, env_name: "FL_COCOAPODS_SILENT", description: "Show nothing", default_value: false), FastlaneCore::ConfigItem.new(key: :verbose, env_name: "FL_COCOAPODS_VERBOSE", description: "Show more debugging information", default_value: false), FastlaneCore::ConfigItem.new(key: :ansi, env_name: "FL_COCOAPODS_ANSI", description: "Show output with ANSI codes", 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) ] end |
.description ⇒ Object
20 21 22 |
# File 'lib/fastlane/actions/install_cocoapods.rb', line 20 def self.description "Runs `pod install` for the project" end |
.is_supported?(platform) ⇒ Boolean
58 59 60 |
# File 'lib/fastlane/actions/install_cocoapods.rb', line 58 def self.is_supported?(platform) [:ios, :mac].include? platform end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fastlane/actions/install_cocoapods.rb', line 4 def self.run(params) cmd = [] cmd << ['bundle exec'] if File.exist?('Gemfile') && params[:use_bundle_exec] cmd << ['pod install'] cmd << '--no-clean' unless params[:clean] cmd << '--no-integrate' unless params[:integrate] cmd << '--no-repo-update' unless params[:repo_update] cmd << '--silent' if params[:silent] cmd << '--verbose' if params[:verbose] cmd << '--no-ansi' unless params[:ansi] Actions.sh(cmd.join(' ')) end |