class PodAlexandria::CIPreInstallHook
Attributes
options[R]
podfile[R]
Public Class Methods
new(installer_context, user_options)
click to toggle source
# File lib/cocoapods-alexandria/env_ci/pre_install.rb, line 5 def initialize(installer_context, user_options) @podfile = installer_context.podfile @options = UserOptions.new(installer_context, user_options) end
Public Instance Methods
run()
click to toggle source
# File lib/cocoapods-alexandria/env_ci/pre_install.rb, line 10 def run Pod::UI.puts "Cocoapods Alexandria running in CI mode." Pod::UI.title "Preparing environment..." podfile.prepare_for_xcodegen podfile.disable_integration delete_workspace Pod::UI.title "Continuing with normal CocoaPods" end
Private Instance Methods
delete_workspace()
click to toggle source
# File lib/cocoapods-alexandria/env_ci/pre_install.rb, line 23 def delete_workspace Dir['*.xcworkspace'].each do |workspace| FileUtils.remove_dir(workspace, force: true) end end