Sha256: e2441a91fb2226c918e6f751531a9448de2448d578949bc900812bf4ca8cf00d

Contents?: true

Size: 395 Bytes

Versions: 13

Compression:

Stored size: 395 Bytes

Contents

class User
  attr_accessor :param

  def initialize(parent)
    @parent = parent
  end

  def exists?
    @parent.target("User #{@param} exists?")
    @parent.run "id #{@param}"
    @parent.expect_one @param
  end

  def is_member_of?(groupname)
    @parent.target("User #{@param} is member of #{groupname}?")
    @parent.run "id #{@param}"
    @parent.expect_one [@param, groupname]
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
teuton-2.1.10 lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.9 lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.8 lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.8dev1 lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.7 lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.6 lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.5dev lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.4 lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.3 lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.2 lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.1 lib/teuton/case_manager/case/builtin/user.rb
teuton-2.1.0 lib/teuton/case_manager/case/builtin/user.rb
teuton-0.0.1 lib/teuton/case_manager/case/builtin/user.rb