Sha256: 02af64e7f792841d2fd3334710075950e732a752887bd9e9cdae09292cb476c3

Contents?: true

Size: 265 Bytes

Versions: 2

Compression:

Stored size: 265 Bytes

Contents

module Redirus
  module Utils
    def full_name(name, type)
      "#{name}_#{type}"
    end

    def config_file_path(name, type)
      File.join(config.configs_path, full_name(name, type))
    end

    def config
      @config ||= Redirus.config
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redirus-0.3.1 lib/redirus/utils.rb
redirus-0.2.1 lib/redirus/utils.rb