Class: Cfer::Core::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/cfer/core/client.rb

Direct Known Subclasses

Cfer::Cfn::Client

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  path = options[:working_directory] || '.'
  if File.exist?("#{path}/.git")
    @git = Git.open(path) rescue nil
  end
end

Instance Attribute Details

#gitObject (readonly)

Returns the value of attribute git.



5
6
7
# File 'lib/cfer/core/client.rb', line 5

def git
  @git
end

Instance Method Details

#convergeObject



14
15
16
# File 'lib/cfer/core/client.rb', line 14

def converge
  raise Cfer::Util::CferError, 'converge not implemented on this client'
end

#tail(options = {}, &block) ⇒ Object



18
19
20
# File 'lib/cfer/core/client.rb', line 18

def tail(options = {}, &block)
  raise Cfer::Util::CferError, 'tail not implemented on this client'
end