Sha256: aa04203a3802f2b35ea662f599280b858beab430d7ca27527e41a83c8a5180d3
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
# Web Application Builder module WAB # Returns a file contents from the gem export directory. def self.get_export(path) if path.nil? || path.empty? path = '/index.html' elsif !path.start_with?('/') path = "/#{path}" end raise ForbiddenError.new(path) if path.include?('..') path = File.expand_path("#{__dir__}/../export#{path}") begin File.open(path) { |f| f.read() } rescue Exception nil end end end require 'wab/controller' require 'wab/racker' require 'wab/data' require 'wab/errors' require 'wab/open_controller' require 'wab/shell' require 'wab/shell_logger' require 'wab/utils' require 'wab/uuid' require 'wab/version' require 'wab/client'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wabur-0.7.0 | lib/wab.rb |