Class: Pod::X::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-x/extension/environment.rb

Class Method Summary collapse

Class Method Details

.init!Object



18
19
20
21
22
23
24
25
26
27
# File 'lib/cocoapods-x/extension/environment.rb', line 18

def self.init!
    project_url = Pathname(Dir.pwd) 
    Pod::X::Sandbox::install!
    Pod::X::Sandbox::podfile_exists! project_url
    conf = Pod::X::Configurator::find_conf? project_url
    conf ||= Pod::X::Configurator::create_conf! project_url
    project = Pod::X::Sandbox::Project::new conf
    project.install!
    project
end

.install!Object



8
9
10
11
# File 'lib/cocoapods-x/extension/environment.rb', line 8

def self.install!
    Pod::X::Sandbox::install!
    Pod::X::Sandbox::workspace
end

.update!Object



13
14
15
16
# File 'lib/cocoapods-x/extension/environment.rb', line 13

def self.update!
    Pod::X::Sandbox::update!
    Pod::X::Sandbox::workspace
end