Class: Pod::Command::X::Install
- Inherits:
-
Pod::Command::X
- Object
- Pod::Command
- Pod::Command::X
- Pod::Command::X::Install
- Defined in:
- lib/cocoapods-x/command/install.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Install
constructor
A new instance of Install.
- #run ⇒ Object
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
.options ⇒ Object
12 13 14 15 16 |
# File 'lib/cocoapods-x/command/install.rb', line 12 def self. = Pod::Command::Install:: << ['--open', 'Remove all the cached without asking'] end |
Instance Method Details
#run ⇒ Object
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 |