Sha256: 676a56d2e6c7577d9ac4173dfd2f78ff818c42a48e4f9ecb79a8f5048efc6f9e
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
require 'pgit' require 'forwardable' module PGit class CurrentProject extend Forwardable PGit::Project.instance_methods(false).each do |m| def_delegator :@current, m end def initialize(configuration) @current = configuration.projects.find do |p| File.expand_path(p.path) == Dir.pwd end raise PGit::Error::User, "Current Project does not exist. See `pgit proj add -h`" unless @current end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pgit-1.0.0 | lib/pgit/current_project.rb |