Skip to content

Commit da19155

Browse files
committed
Support defaulting the new properties on pip_requirements to app properties.
1 parent c9d0d12 commit da19155

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/poise_application_python/resources/pip_requirements.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ class Resource < PoisePython::Resources::PipRequirements::Resource
4141
subclass_providers!
4242

4343
# @todo This should handle relative paths against parent.path.
44+
45+
# #!attribute group
46+
# Override the default group to be the app group if unspecified.
47+
# @return [String, Integer]
48+
attribute(:group, kind_of: [String, Integer, NilClass], default: lazy { parent && parent.group })
49+
50+
# #!attribute user
51+
# Override the default user to be the app owner if unspecified.
52+
# @return [String, Integer]
53+
attribute(:user, kind_of: [String, Integer, NilClass], default: lazy { parent && parent.owner })
4454
end
4555
end
4656
end

0 commit comments

Comments
 (0)