Class: Pod::Command::Link

Inherits:
Pod::Command show all
Defined in:
lib/pod/command/link.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Link

Returns a new instance of Link.



23
24
25
26
# File 'lib/pod/command/link.rb', line 23

def initialize(argv)
  @pod = argv.shift_argument()
  super
end

Instance Method Details

#runObject

if no pod is given from the command line then we will create a link for the current pod so other pods can link it as a development dependency

if a pod name is given from the command line then we will link that pod into the current pod as a development dependency



35
36
37
38
39
40
41
# File 'lib/pod/command/link.rb', line 35

def run 
  unless @pod.nil?
    Pod::Command::Links.link @pod
  else
    Pod::Command::Links.register
  end
end