Sha256: aa166216814d4edb0cb267460d8635b1eb496c69da8176584a4e73b72ab4b1fe

Contents?: true

Size: 303 Bytes

Versions: 6

Compression:

Stored size: 303 Bytes

Contents

require "batcave/namespace"

module BatCave::Support::EnvPath
  def path(environment)
    case environment.to_sym
      when :user
        return ENV["HOME"]
      when :project
        return project_root
      else
        raise "Unsupported environment '#{environment}'"
    end
  end # def path
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
batcave-0.0.11 lib/batcave/support/envpath.rb
batcave-0.0.9 lib/batcave/support/envpath.rb
batcave-0.0.7 lib/batcave/support/envpath.rb
batcave-0.0.6 lib/batcave/support/envpath.rb
batcave-0.0.5 lib/batcave/support/envpath.rb
batcave-0.0.4 lib/batcave/support/envpath.rb