class Pod::Extension::Sandbox::Workspace
Attributes
projects[R]
repos[R]
template[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/cocoapods-extension/sandbox/workspace.rb, line 13 def initialize super File.join(File.expand_path('~'), '.cocoapods/extension') @repos = Pod::Extension::Sandbox::Repos::new root @template = Pod::Extension::Sandbox::Template::new root @projects = Pod::Extension::Sandbox::Projects::new root end
Public Instance Methods
install!()
click to toggle source
# File lib/cocoapods-extension/sandbox/workspace.rb, line 20 def install! @repos.install! @template.install! @projects.install! unless source_file.exist? cp! [@template::source_file, source_file] end end
source_file()
click to toggle source
# File lib/cocoapods-extension/sandbox/workspace.rb, line 39 def source_file root + 'source' end
update!()
click to toggle source
# File lib/cocoapods-extension/sandbox/workspace.rb, line 30 def update! @repos.update! @template.update! @projects.update! rm! ['-rf', source_file] cp! [@template::source_file, source_file] end