Class: Pod::Command::Mod::Base

Inherits:
Pod::Command::Mod show all
Defined in:
lib/cocoapods-modularization/command/mod/base.rb

Instance Method Summary collapse

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

#runObject



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