Method: Hookit::Resource::HookFile#run

Defined in:
lib/hookit/resource/hook_file.rb

#run(action) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/hookit/resource/hook_file.rb', line 20

def run(action)
  case action
  when :create
    create!
    chown!
    chmod!            
  when :create_if_missing
    create_if_missing!
    chown!
    chmod!
  when :delete
    delete!
  when :touch
    touch!
  end
end