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

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

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Install

Returns a new instance of Install.



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

def initialize(argv)
    super
end

Instance Method Details

#runObject



16
17
18
19
20
21
22
23
24
# File 'lib/cocoapods-x/command/environment/install.rb', line 16

def run
    begin
        UI.puts 'Pod::X '.magenta + "Installing X environment."
        Pod::X::Environment::install!
        UI.puts 'Pod::X '.magenta + "Env installation complete!".green
    rescue => exception
        UI.puts '[!] Pod::X '.magenta + "#{exception}".red
    end
end