Class: Cfer::Core::Client
- Inherits:
-
Object
- Object
- Cfer::Core::Client
- Defined in:
- lib/cfer/core/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#git ⇒ Object
readonly
Returns the value of attribute git.
Instance Method Summary collapse
- #converge ⇒ Object
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #tail(options = {}, &block) ⇒ Object
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
7 8 9 10 11 12 |
# File 'lib/cfer/core/client.rb', line 7 def initialize() path = [:working_directory] || '.' if File.exist?("#{path}/.git") @git = Git.open(path) rescue nil end end |
Instance Attribute Details
#git ⇒ Object (readonly)
Returns the value of attribute git.
5 6 7 |
# File 'lib/cfer/core/client.rb', line 5 def git @git end |