Class: PodAlexandria::CIPreInstallHook
- Inherits:
-
Object
- Object
- PodAlexandria::CIPreInstallHook
- Defined in:
- lib/cocoapods-alexandria/env_ci/pre_install.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#podfile ⇒ Object
readonly
Returns the value of attribute podfile.
Instance Method Summary collapse
-
#initialize(installer_context, user_options) ⇒ CIPreInstallHook
constructor
A new instance of CIPreInstallHook.
- #run ⇒ Object
Constructor Details
#initialize(installer_context, user_options) ⇒ CIPreInstallHook
Returns a new instance of CIPreInstallHook.
5 6 7 8 |
# File 'lib/cocoapods-alexandria/env_ci/pre_install.rb', line 5 def initialize(installer_context, ) @podfile = installer_context.podfile @options = UserOptions.new(installer_context, ) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/cocoapods-alexandria/env_ci/pre_install.rb', line 3 def @options end |
#podfile ⇒ Object (readonly)
Returns the value of attribute podfile.
3 4 5 |
# File 'lib/cocoapods-alexandria/env_ci/pre_install.rb', line 3 def podfile @podfile end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# 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 |