-
Notifications
You must be signed in to change notification settings - Fork 121
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
fix for td-agent v4 #155
base: master
Are you sure you want to change the base?
fix for td-agent v4 #155
Conversation
Hi @yyuu someone from treasure-data still check pull requests from community ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to be late. I have left few comments|questions. Please have a look on them 🙏
@@ -25,6 +25,9 @@ class Package | |||
class TdRubygems < Chef::Provider::Package::Rubygems | |||
|
|||
class TdGemEnvironment < AlternateGemEnvironment | |||
def rubygems_version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get your intention to override the inherited rubygems_version
here 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because in chef12 doesn't exists (still used by AWS Opsworks service)
end | ||
end | ||
|
||
def needs_nodocument? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is your intention to override needs_nodocument
here? The only difference between 2 implementations are use of rubygems_version
vs. gem_env.rubygems_version
. This could mean that if TdGemEnvironment
defines proper rubygems_version
, we don't have to override this method here as per my understanding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same reason this doesn't exists on chef 12/13
@@ -40,6 +43,39 @@ def td_plugin_name | |||
"fluent-plugin-#{@new_resource.package_name}" | |||
end | |||
|
|||
def rubygems_version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't have to have this method definition if we use TdGemEnvironment
properly 🤔 I couldn't get your intention to define multiple rubygems_version
in multiple places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not expert, maybe for the same reason because in old chef version doesn't exists? but i'm opened to changes
there are 2 fix inside: