Module: Ansible::Ruby::Modules::MissingFileStuff

Included in:
Copy, File, Template
Defined in:
lib/ansible/ruby/modules/missing_file_stuff.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/ansible/ruby/modules/missing_file_stuff.rb', line 6

def self.included(base)
  # @return [String, nil] Which user should own the file
  base.attribute :owner
  base.validates :owner, type: String

  # @return [String, nil] Which group should own the file
  base.attribute :group
  base.validates :group, type: String

  # @return [String, nil] File mode, e.g. "u=rw,g=r"
  base.attribute :mode
  base.validates :mode, type: String

  base.attribute :setype
  base.validates :setype, type: String

  base.attribute :selevel
  base.validates :selevel, type: String
end