Class: Pod::Command::X::Edit

Inherits:
Pod::Command::X show all
Extended by:
Executable
Defined in:
lib/cocoapods-x/command/edit.rb

Instance Method Summary collapse

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

#runObject



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