class Pod::Command::Link

Public Class Methods

new(argv) click to toggle source
Calls superclass method
# File lib/pod/command/link.rb, line 23
def initialize(argv)
  @pod = argv.shift_argument()
  super
end

Public Instance Methods

run() click to toggle source

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

# 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