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

Support handling host attributes #98

Merged
merged 2 commits into from May 13, 2013
Merged

Support handling host attributes #98

merged 2 commits into from May 13, 2013

Conversation

@mizzy
Copy link
Owner

@mizzy mizzy commented May 12, 2013

With this branch, serverspec can handle host attributes.

This pull request implements attr_set and attr methods.

You can set attributes like this.(This may be set in spec_helper.rb)

attr_set :server_id => 100

And you can use this attributes in your spec like this.

describe '/etc/my.cnf' do
  it { should contain "server-id = #{attr[:server_id]}" }
end

This pull request provides only methods for setting and getting attributes.You can use any external resources you like.

mizzy added a commit that referenced this issue May 13, 2013
Support handling host attributes
@mizzy mizzy merged commit 0716558 into master May 13, 2013
1 check passed
@mizzy mizzy deleted the host-attributes branch May 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant