Class: EySecrets::Git

Inherits:
Struct
  • Object
show all
Defined in:
lib/ey_secrets/adapters/git.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



2
3
4
# File 'lib/ey_secrets/adapters/git.rb', line 2

def path
  @path
end

Class Method Details

.repository(path) ⇒ Object



3
4
5
# File 'lib/ey_secrets/adapters/git.rb', line 3

def self.repository(path)
  new(path).repository
end

Instance Method Details

#repositoryObject



7
8
9
# File 'lib/ey_secrets/adapters/git.rb', line 7

def repository
  Repository.new(remotes, files, in_sync?)
end