Sha256: 15730611d4755e97de65a0a0f3f496cf906fbd235a478f26803c3fa67d4189b5

Contents?: true

Size: 641 Bytes

Versions: 4

Compression:

Stored size: 641 Bytes

Contents

require File.join(File.dirname(__FILE__), 'global_open_struct')

module CSD
  class Path < GlobalOpenStruct
    
    def self.root
      @@root ||= Dir.pwd
    end
    
    def self.root=(path)
      @@root = path
    end
    
    def self.gem
      @@gem ||= File.expand_path(File.join(File.dirname(__FILE__), '..' ,'..'))
    end
    
    def self.vendor
      @@vendor ||= File.join(gem, 'vendor')
    end
    
    def self.applications
      @@applications ||= File.expand_path(File.join(gem, 'lib', 'csd', 'application'))
    end
    
    def self.applications=(path)
      @@applications = File.expand_path(path)
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
csd-0.1.2 lib/csd/path.rb
csd-0.1.1 lib/csd/path.rb
csd-0.1.0 lib/csd/path.rb
csd-0.0.16 lib/csd/path.rb