Sha256: 20647eaea5a3f80da134d9aa7c52bdf46436734fcc0ebf9c69660400154fa375

Contents?: true

Size: 472 Bytes

Versions: 14

Compression:

Stored size: 472 Bytes

Contents

require 'git'

module Cfer::Core
  class Client
    attr_reader :git

    def initialize(options)
      path = options[:working_directory] || '.'
      if File.exist?("#{path}/.git")
        @git = Git.open(path) rescue nil
      end
    end

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cfer-1.0.0 lib/cfer/core/client.rb
cfer-0.8.0 lib/cfer/core/client.rb
cfer-0.7.0 lib/cfer/core/client.rb
cfer-0.6.2 lib/cfer/core/client.rb
cfer-0.6.1 lib/cfer/core/client.rb
cfer-0.6.0 lib/cfer/core/client.rb
cfer-0.5.0 lib/cfer/core/client.rb
cfer-0.5.0.pre.rc4 lib/cfer/core/client.rb
cfer-0.5.0.pre.rc3 lib/cfer/core/client.rb
cfer-0.5.0.pre.rc2 lib/cfer/core/client.rb
cfer-0.5.0.pre.rc1 lib/cfer/core/client.rb
cfer-0.4.2 lib/cfer/core/client.rb
cfer-0.4.1 lib/cfer/core/client.rb
cfer-0.4.0 lib/cfer/core/client.rb