-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add gluster_volume_option custom resource #86
Conversation
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.
Can you add chefspec matchers for the new resource?
I've got work piling on top of me but I understand you want to maintain quality so I'll try to find the time. I've also got geo-replication/mountbroker stuff on the way. |
Misunderstood you earlier, thought you wanted me to write some specs. I've never actually used ChefSpec (but I should…) so I've not tested these but seems simple enough. I would have thought this could automated but what do I know? 😁 |
Take a look at def name is |
Yep, I meant I've already done it, please see the amended commit. |
Sorry, just realised I messed up the README ordering slightly. I'll fix it tomorrow as it's late now. |
@@ -14,4 +14,12 @@ def enable_gluster_mount(resource_name) | |||
def disable_gluster_mount(resource_name) | |||
ChefSpec::Matchers::ResourceMatcher.new(:gluster_mount, :disable, resource_name) | |||
end | |||
|
|||
def set_gluster_volume_option(resource_name) # rubocop:disable Style/AccessorMethodName |
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.
Can you actually put the rubocop rule in .rubocop.yml
as an excludes for this file?
Okay, all sorted. |
Awesome work! |
No description provided.