Class: Moku::Task::BuildPermissions

Inherits:
Task
  • Object
show all
Defined in:
lib/moku/task/build_permissions.rb

Overview

Sets permissions on the files and directories of the artifact.

Defined Under Namespace

Classes: Permissions

Instance Method Summary collapse

Methods inherited from Task

#to_s

Instance Method Details

#call(artifact) ⇒ Status

Parameters:

Returns:


57
58
59
60
61
62
63
64
65
# File 'lib/moku/task/build_permissions.rb', line 57

def call(artifact) # rubocop:disable Metrics/AbcSize
  artifact.with_env do
    private_permissions.apply(artifact.path)
    sensitive_permissions.apply(artifact.path/"log")
    public_permissions.apply(artifact.path/"public")
    public_permissions.apply(artifact.path/"public"/"assets")
  end
  Status.success
end