Sha256: 559b7dbd0fa47d1f618f0401082556c4ae4490ba4ed8d0b7467d483650b3c844

Contents?: true

Size: 697 Bytes

Versions: 1

Compression:

Stored size: 697 Bytes

Contents

require "date"
require "logger"
require "ostruct"
require "rest_client"
require "nightcrawler_swift/version"
require "nightcrawler_swift/exceptions"
require "nightcrawler_swift/command"
require "nightcrawler_swift/connection"
require "nightcrawler_swift/upload"
require "nightcrawler_swift/list"
require "nightcrawler_swift/delete"
require "nightcrawler_swift/sync"

module NightcrawlerSwift
  class << self

    attr_accessor :logger
    attr_reader :connection

    def logger
      @logger || Logger.new(STDOUT)
    end

    def configure opts = {}
      @connection = Connection.new opts
    end

    def sync dir_path
      Sync.new(@connection.connect!).execute(dir_path)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nightcrawler_swift-0.1.0 lib/nightcrawler_swift.rb