Class: Pod::Command::Unlink

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

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Unlink

Returns a new instance of Unlink.



23
24
25
26
# File 'lib/pod/command/unlink.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 unregister the pod from the registered links

if a pod name is given from the command line then we will unlink the given pod from the project



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

def run 
  unless @pod.nil?
    Pod::Command::Links.unlink @pod
  else
    Pod::Command::Links.unregister
  end
end