Class: Koch::CreateFile

Inherits:
Resource show all
Includes:
Ogm
Defined in:
lib/koch/create_file.rb

Overview

Creates and/or changes a files’ contents, mode, owner and/or group

Instance Attribute Summary

Attributes inherited from Resource

#changed, #name

Instance Method Summary collapse

Methods included from Ogm

#apply_group, #apply_mode, #apply_owner

Methods inherited from Resource

dsl_writer, #initialize

Constructor Details

This class inherits a constructor from Koch::Resource

Instance Method Details

#apply!Object



10
11
12
13
14
15
# File 'lib/koch/create_file.rb', line 10

def apply!
  apply_contents
  apply_owner
  apply_group
  apply_mode
end