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-1.2.0 lib/bill_hicks/user.rb
bill_hicks-1.2.0.pre lib/bill_hicks/user.rb
bill_hicks-1.1.9.pre3 lib/bill_hicks/user.rb
bill_hicks-1.1.9.pre2 lib/bill_hicks/user.rb
bill_hicks-1.1.9.pre lib/bill_hicks/user.rb
bill_hicks-1.1.8 lib/bill_hicks/user.rb
bill_hicks-1.1.7 lib/bill_hicks/user.rb
bill_hicks-1.1.6 lib/bill_hicks/user.rb
bill_hicks-1.1.5 lib/bill_hicks/user.rb
bill_hicks-1.1.4 lib/bill_hicks/user.rb
bill_hicks-1.1.3 lib/bill_hicks/user.rb
bill_hicks-1.1.2 lib/bill_hicks/user.rb
bill_hicks-1.1.1 lib/bill_hicks/user.rb
bill_hicks-1.1.0 lib/bill_hicks/user.rb
bill_hicks-1.0.0 lib/bill_hicks/user.rb
bill_hicks-0.2.2 lib/bill_hicks/user.rb
bill_hicks-0.2.1 lib/bill_hicks/user.rb
bill_hicks-0.2.0 lib/bill_hicks/user.rb