Class: Pod::Command::Mod::Base
- Inherits:
-
Pod::Command::Mod
- Object
- Pod::Command
- Pod::Command::Mod
- Pod::Command::Mod::Base
- Defined in:
- lib/cocoapods-modularization/command/mod/base.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Base
constructor
A new instance of Base.
- #run ⇒ Object
- #validate! ⇒ Object
Constructor Details
#initialize(argv) ⇒ Base
Returns a new instance of Base.
18 19 20 21 |
# File 'lib/cocoapods-modularization/command/mod/base.rb', line 18 def initialize(argv) @path = argv.shift_argument super end |
Instance Method Details
#run ⇒ Object
29 30 31 |
# File 'lib/cocoapods-modularization/command/mod/base.rb', line 29 def run Private::PrivateCache.set_search_path(@path) end |
#validate! ⇒ Object
23 24 25 26 27 |
# File 'lib/cocoapods-modularization/command/mod/base.rb', line 23 def validate! super help! 'A Path for the Base is required.' unless @path help! 'The Path illlegal.' unless @path =~ /\/([^\/]*)/ end |