Sha256: 78224ea4ea2de813c4025e7340c2ddf49baab35b2b71e9c785b6fc5f4df4f5d8

Contents?: true

Size: 298 Bytes

Versions: 58

Compression:

Stored size: 298 Bytes

Contents

module BillHicks
  class User < Base

    def initialize(options = {})
      requires!(options, :username, :password)
      @options = options
    end

    def authenticated?
      connect(@options) { |ftp| ftp.pwd }
      true
    rescue BillHicks::NotAuthenticated
      false
    end

  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
bill_hicks-5.0.2 lib/bill_hicks/user.rb
bill_hicks-5.0.1 lib/bill_hicks/user.rb
bill_hicks-5.0.0 lib/bill_hicks/user.rb
bill_hicks-4.0.0 lib/bill_hicks/user.rb
bill_hicks-3.0.0 lib/bill_hicks/user.rb
bill_hicks-2.2.0 lib/bill_hicks/user.rb
bill_hicks-2.1.4 lib/bill_hicks/user.rb
bill_hicks-2.1.2 lib/bill_hicks/user.rb
bill_hicks-2.1.1 lib/bill_hicks/user.rb
bill_hicks-2.0.13 lib/bill_hicks/user.rb
bill_hicks-1.3.10 lib/bill_hicks/user.rb
bill_hicks-2.1.0 lib/bill_hicks/user.rb
bill_hicks-2.0.12 lib/bill_hicks/user.rb
bill_hicks-2.0.11 lib/bill_hicks/user.rb
bill_hicks-2.0.10 lib/bill_hicks/user.rb
bill_hicks-2.0.9 lib/bill_hicks/user.rb
bill_hicks-1.3.9 lib/bill_hicks/user.rb
bill_hicks-1.3.8 lib/bill_hicks/user.rb
bill_hicks-1.3.7 lib/bill_hicks/user.rb
bill_hicks-2.0.8 lib/bill_hicks/user.rb