Class: PodAlexandria::LocalPreInstallHook
- Inherits:
-
Object
- Object
- PodAlexandria::LocalPreInstallHook
- Defined in:
- lib/cocoapods-alexandria/env_local/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) ⇒ LocalPreInstallHook
constructor
A new instance of LocalPreInstallHook.
- #run ⇒ Object
Constructor Details
#initialize(installer_context, user_options) ⇒ LocalPreInstallHook
Returns a new instance of LocalPreInstallHook.
5 6 7 8 |
# File 'lib/cocoapods-alexandria/env_local/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_local/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_local/pre_install.rb', line 3 def podfile @podfile end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/cocoapods-alexandria/env_local/pre_install.rb', line 10 def run Pod::UI.puts 'Cocoapods Alexandria running in local mode.' if should_predownload_dep Pod::UI.title 'Pre-downloading dependency for XcodeGen' predownload_dep end Pod::UI.title 'Generating project using XcodeGen' XcodeGen::cleanupRome XcodeGen::clearDependencies(.xcodegen_dependencies_file) XcodeGen::generate Pod::UI.title 'Preparing environment...' podfile.prepare_for_xcodegen Pod::UI.title 'Continuing with normal CocoaPods' end |