Sha256: f1bc41631fc311cd754d0adbc7ac3f891c12181d952af24de13149fa2e0da547

Contents?: true

Size: 816 Bytes

Versions: 3

Compression:

Stored size: 816 Bytes

Contents

require "date"
require "logger"
require "ostruct"
require "multi_mime"
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/download"
require "nightcrawler_swift/list"
require "nightcrawler_swift/delete"
require "nightcrawler_swift/sync"
require "nightcrawler_swift/railtie" if defined?(Rails)

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
      connection.connect!
      Sync.new.execute(dir_path)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nightcrawler_swift-0.3.0 lib/nightcrawler_swift.rb
nightcrawler_swift-0.2.3 lib/nightcrawler_swift.rb
nightcrawler_swift-0.2.2 lib/nightcrawler_swift.rb