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-2.0.7 lib/bill_hicks/user.rb
bill_hicks-2.0.6 lib/bill_hicks/user.rb
bill_hicks-2.0.5 lib/bill_hicks/user.rb
bill_hicks-2.0.4 lib/bill_hicks/user.rb
bill_hicks-2.0.3 lib/bill_hicks/user.rb
bill_hicks-2.0.2 lib/bill_hicks/user.rb
bill_hicks-1.3.6 lib/bill_hicks/user.rb
bill_hicks-2.0.1 lib/bill_hicks/user.rb
bill_hicks-2.0 lib/bill_hicks/user.rb
bill_hicks-1.3.5 lib/bill_hicks/user.rb
bill_hicks-1.3.4 lib/bill_hicks/user.rb
bill_hicks-1.3.3 lib/bill_hicks/user.rb
bill_hicks-1.3.2 lib/bill_hicks/user.rb
bill_hicks-1.3.1 lib/bill_hicks/user.rb
bill_hicks-1.3.0 lib/bill_hicks/user.rb
bill_hicks-1.2.4 lib/bill_hicks/user.rb
bill_hicks-1.2.3 lib/bill_hicks/user.rb
bill_hicks-1.2.2 lib/bill_hicks/user.rb
bill_hicks-1.2.1 lib/bill_hicks/user.rb
bill_hicks-1.2.1.pre lib/bill_hicks/user.rb