Class: Pod::Command::X::Env::Update
- Inherits:
-
Pod::Command::X::Env
- Object
- Pod::Command
- Pod::Command::X
- Pod::Command::X::Env
- Pod::Command::X::Env::Update
- Defined in:
- lib/cocoapods-x/command/environment/update.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Update
constructor
A new instance of Update.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ Update
Returns a new instance of Update.
12 13 14 |
# File 'lib/cocoapods-x/command/environment/update.rb', line 12 def initialize(argv) super end |
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/cocoapods-x/command/environment/update.rb', line 16 def run begin UI.puts 'Pod::X '.magenta + "Updating X environment." Pod::X::Environment::update! UI.puts 'Pod::X '.magenta + "Env installation complete!".green rescue => exception UI.puts '[!] Pod::X '.magenta + "#{exception}".red end end |