class Papa::Helper::Path
Constants
- SANDBOX_PREFIX
- TMP_PATH
- VI_PREFIX
Public Class Methods
generate_sandbox_path(type, options = {})
click to toggle source
# File lib/papa/helper/path.rb, line 14 def self.generate_sandbox_path(type, options = {}) path = if options.has_key?('override_path_prefix') options[:override_path_prefix] + '-' + type else SANDBOX_PREFIX + type + '-' + uuid_gen end File.join(TMP_PATH, path) end
generate_vi_file_path()
click to toggle source
# File lib/papa/helper/path.rb, line 10 def self.generate_vi_file_path File.join(TMP_PATH, VI_PREFIX + uuid_gen + '.txt') end
uuid_gen()
click to toggle source
# File lib/papa/helper/path.rb, line 24 def self.uuid_gen SecureRandom.uuid end