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.
Instance Attribute Summary collapse
-
#group ⇒ String, Integer
Override the default group to be the app group if unspecified.
-
#path ⇒ String
Override the default path to be relative to the app path.
-
#user ⇒ String, Integer
Override the default user to be the app owner if unspecified.
Instance Method Summary collapse
- #initialize ⇒ Object private
Instance Attribute Details
#group ⇒ String, Integer
Override the default group to be the app group if unspecified.
49 |
# File 'lib/poise_application/app_file_mixin.rb', line 49 attribute(:group, kind_of: [String, Integer, NilClass], default: lazy { parent && parent.group }) |
#path ⇒ String
Override the default path to be relative to the app path.
44 |
# File 'lib/poise_application/app_file_mixin.rb', line 44 attribute(:path, kind_of: String, default: lazy { parent ? ::File.(name, parent.path) : name }) |
#user ⇒ String, Integer
Override the default user to be the app owner if unspecified.
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
#initialize ⇒ Object
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.
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 |