Sha256: 6da2e523867487b7df7187d5aaee869045dc68fde2b3298cdfc5bcb6b35c82ef

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

require 'pansophy/version'

module Pansophy
  def self.connection
    @connection ||= Connection.aws
  end

  def self.pull(bucket_name, remote_directory, local_directory, options = {})
    Synchronizer.new(bucket_name, remote_directory, local_directory).pull(options)
  end

  def self.merge(bucket_name, remote_directory, local_directory, options = {})
    Synchronizer.new(bucket_name, remote_directory, local_directory).merge(options)
  end

  def self.push(bucket_name, remote_directory, local_directory, options = {})
    Synchronizer.new(bucket_name, remote_directory, local_directory).push(options)
  end

  def self.fetch(bucket_name, path)
    Remote::FetchFile.new(bucket_name, path).call
  end

  def self.read(bucket_name, path)
    Remote::ReadFileBody.new(bucket_name, path).call
  end

  def self.head(bucket_name, path)
    Remote::ReadFileHead.new(bucket_name, path).call
  end
end

require 'fog/aws'
require 'singleton'
require 'adamantium'

require 'pansophy/helpers'
require 'pansophy/connection'
require 'pansophy/remote'
require 'pansophy/local'
require 'pansophy/synchronizer'
require 'pansophy/config_synchronizer'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pansophy-0.4.0 lib/pansophy.rb