Module: Paths
- Defined in:
- lib/canuby/paths.rb
Overview
Folder and files related methods
Class Method Summary collapse
- 
  
    
      .base_dir  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Returns the dependency folder custom allows to change the default path. 
- .base_dir=(var) ⇒ Object
- 
  
    
      .build_dir(project)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Returns a projects build dir. 
- 
  
    
      .create  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Create build folders. 
- 
  
    
      .stage_dir  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    returns stage dir. 
Class Method Details
.base_dir ⇒ Object
Returns the dependency folder custom allows to change the default path
| 35 36 37 | # File 'lib/canuby/paths.rb', line 35 def self.base_dir @base_dir end | 
.base_dir=(var) ⇒ Object
| 29 30 31 | # File 'lib/canuby/paths.rb', line 29 def self.base_dir=(var) @base_dir = var end | 
.build_dir(project) ⇒ Object
Returns a projects build dir
| 40 41 42 | # File 'lib/canuby/paths.rb', line 40 def self.build_dir(project) File.join(const_get(project).path, 'build') end | 
.create ⇒ Object
Create build folders
| 50 51 52 | # File 'lib/canuby/paths.rb', line 50 def self.create mkdir_p stage_dir unless Dir.exist?(stage_dir) end | 
.stage_dir ⇒ Object
returns stage dir
| 45 46 47 | # File 'lib/canuby/paths.rb', line 45 def self.stage_dir File.join(base_dir, 'lib') end |