Class: Pod::Command::Link
- Inherits:
-
Pod::Command
- Object
- Pod::Command
- Pod::Command::Link
- Defined in:
- lib/pod/command/link.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Link
constructor
A new instance of Link.
-
#run ⇒ Object
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.
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
#run ⇒ Object
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 |