class Pod::Command::Dev::Init
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/cocoapods-extension/command/development/init.rb, line 11 def initialize(argv) super end
Public Instance Methods
run()
click to toggle source
# File lib/cocoapods-extension/command/development/init.rb, line 15 def run begin UI.puts "Initing development environment." project_url = Pathname(Dir.pwd) Pod::Extension::Sandbox::install! Pod::Extension::Sandbox::podfile_exists! project_url conf = Pod::Extension::Configurator::find_conf? project_url conf ||= Pod::Extension::Configurator::create_conf! project_url project = Pod::Extension::Sandbox::Project::new conf project.install! rescue => exception puts "[!] #{exception}".red end end