Class: Pod::Command::X::Install

Inherits:
Pod::Command::X show all
Defined in:
lib/cocoapods-x/command/install.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Install

Returns a new instance of Install.



18
19
20
21
22
# File 'lib/cocoapods-x/command/install.rb', line 18

def initialize(argv)
    @wipe_all = argv.flag?('open')
    @install = Pod::Command::Install::new(argv)
    super
end

Class Method Details

.optionsObject



12
13
14
15
16
# File 'lib/cocoapods-x/command/install.rb', line 12

def self.options
    options = Pod::Command::Install::options
    options << ['--open', 'Remove all the cached without asking']
    options
end

Instance Method Details

#runObject



24
25
26
27
28
29
30
# File 'lib/cocoapods-x/command/install.rb', line 24

def run 
    @install::run
    if @wipe_all
        xcopen = Pod::X::Xcode::Open::new
        xcopen.run!
    end
end