Module: Ftpmock

Defined in:
lib/ftpmock/proxies/net_sftp_proxy.rb,
lib/ftpmock.rb,
lib/ftpmock/version.rb,
lib/ftpmock/core/cache.rb,
lib/ftpmock/configuration.rb,
lib/ftpmock/utils/color_utils.rb,
lib/ftpmock/helpers/get_helper.rb,
lib/ftpmock/helpers/put_helper.rb,
lib/ftpmock/utils/string_utils.rb,
lib/ftpmock/helpers/list_helper.rb,
lib/ftpmock/helpers/path_helper.rb,
lib/ftpmock/utils/verbose_utils.rb,
lib/ftpmock/proxies/net_ftp_proxy.rb,
lib/ftpmock/proxies/method_missing_mixin.rb

Overview

Defined Under Namespace

Modules: ColorUtils, GetHelper, ListHelper, MethodMissingMixin, PathHelper, PutHelper, StringUtils, VerboseUtils Classes: Cache, CodeError, Configuration, Error, GetNotFetched, NetFtpProxy, NetSftpProxy, PutFileNotFound, PutLocalDiffersFromCache

Constant Summary collapse

VERSION =

when bumping, remember to flush CHANGELOG

'0.1.1'.freeze

Class Method Summary collapse

Class Method Details

.configurationObject



8
9
10
# File 'lib/ftpmock/configuration.rb', line 8

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



4
5
6
# File 'lib/ftpmock/configuration.rb', line 4

def configure
  yield configuration
end

.off!Object



35
36
37
38
# File 'lib/ftpmock.rb', line 35

def self.off!
  NetFtpProxy.off!
  NetSftpProxy.off!
end

.on!(&block) ⇒ Object



29
30
31
32
33
# File 'lib/ftpmock.rb', line 29

def self.on!(&block)
  NetFtpProxy.on! do
    NetSftpProxy.on!(&block)
  end
end