Sha256: 62e1c7b588a4258b55c40627d0dde7b4203453607d4a7abe6600f56b17f6ff9e

Contents?: true

Size: 434 Bytes

Versions: 34

Compression:

Stored size: 434 Bytes

Contents

class Specinfra::Command::Freebsd::Base::User < Specinfra::Command::Base::User
  class << self
    def create
      if os[:release].to_i < 7
        Specinfra::Command::Freebsd::V6::User
      else
        self
      end
    end

    def get_minimum_days_between_password_change(user)
      "0"
    end

    def get_maximum_days_between_password_change(user)
      "pw usershow -n #{escape(user)} | cut -d':' -f 6"
    end

  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
specinfra-cisco-2.41.0 lib/specinfra/command/freebsd/base/user.rb
specinfra-cisco-2.40.2 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.43.5 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.43.4 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.43.3 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.43.2 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.43.1 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.43.0 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.42.2 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.42.1 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.42.0 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.41.1 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.41.0 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.40.2 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.40.1 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.40.0 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.39.1 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.39.0 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.38.1 lib/specinfra/command/freebsd/base/user.rb
specinfra-2.38.0 lib/specinfra/command/freebsd/base/user.rb