Module: PoiseApplication::AppFileMixin::Resource Private

Includes:
PoiseApplication::AppMixin
Defined in:
lib/poise_application/app_file_mixin.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 5.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#groupString, Integer

Override the default group to be the app group if unspecified.

Returns:

  • (String, Integer)


49
# File 'lib/poise_application/app_file_mixin.rb', line 49

attribute(:group, kind_of: [String, Integer, NilClass], default: lazy { parent && parent.group })

#pathString

Override the default path to be relative to the app path.

Returns:

  • (String)


44
# File 'lib/poise_application/app_file_mixin.rb', line 44

attribute(:path, kind_of: String, default: lazy { parent ? ::File.expand_path(name, parent.path) : name })

#userString, Integer

Override the default user to be the app owner if unspecified.

Returns:

  • (String, Integer)


54
# File 'lib/poise_application/app_file_mixin.rb', line 54

attribute(:user, kind_of: [String, Integer, NilClass], default: lazy { parent && parent.owner })

Instance Method Details

#initializeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 5.1.0



35
36
37
38
39
# File 'lib/poise_application/app_file_mixin.rb', line 35

def initialize(*)
  super
  # So our lazy default below can work. Not needed on 12.7+.
  remove_instance_variable(:@path) if instance_variable_defined?(:@path)
end