Class: Pod::Command::X::Edit
- Inherits:
-
Pod::Command::X
- Object
- Pod::Command
- Pod::Command::X
- Pod::Command::X::Edit
- Extended by:
- Executable
- Defined in:
- lib/cocoapods-x/command/edit.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Edit
constructor
A new instance of Edit.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ Edit
Returns a new instance of Edit.
20 21 22 23 |
# File 'lib/cocoapods-x/command/edit.rb', line 20 def initialize(argv) @name = argv.shift_argument super end |
Instance Method Details
#run ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cocoapods-x/command/edit.rb', line 25 def run if @name == 'pods' open_pods! elsif @name == 'sources' open_source! elsif @name == 'Podfile' open_podfile! else self.help! end end |