Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly avoid using ostruct #8

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/foreman/export/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class Foreman::Export::Base
# deprecated
attr_reader :port

# deprecated
ProcessStruct = Struct.new(:name, :process)

def initialize(location, engine, options={})
@location = location
@engine = engine
Expand All @@ -34,10 +37,7 @@ def template
def @engine.procfile
Foreman::Export::Base.warn_deprecation!
@processes.map do |process|
Struct.new(
:name => @names[process],
:process => process
)
ProcessStruct.new(@names[process], process)
end
end
end
Expand Down
Loading