Parse roledirs from ansible.cfg #91

Merged
merged 1 commit into from Jan 9, 2017

Conversation

Projects
None yet
2 participants
@agx
Contributor

agx commented Dec 15, 2016

This allows us to find specs that are not under ./roles. Setting

[defaults]
roles_path = moreroles

in ansible.cfg leads to this pattern for rspec:

--pattern {moreroles,roles}/{role1,role2}/spec/*_spec.rb

Introduce a AnsibleCfg class for that. This currently only holds
roles_path but can be extended to handle e.g. remote_user as well.

Closes #86

Parse roledirs from ansible.cfg
This allows us to find specs that are not under ./roles. Setting

  [defaults]
  roles_path = moreroles

in ansible.cfg leads to this pattern for rspec:

  --pattern \{moreroles,roles\}/\{role1,role2\}/spec/\*_spec.rb

Introduce a AnsibleCfg class for that. This currently only holds
roles_path but can be extended to handle e.g. remote_user as well.

Closes #86

@volanja volanja merged commit 54ef0f1 into volanja:master Jan 9, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@volanja volanja added this to the v0.2.17 milestone Jan 9, 2017

@volanja

This comment has been minimized.

Show comment
Hide comment
@volanja

volanja Jan 9, 2017

Owner

Thank you for your contribution!

Owner

volanja commented Jan 9, 2017

Thank you for your contribution!

@agx

This comment has been minimized.

Show comment
Hide comment
@agx

agx Jan 24, 2017

Contributor

@volanja thanks for merging this in. Can we have gem release with this code please?

Contributor

agx commented Jan 24, 2017

@volanja thanks for merging this in. Can we have gem release with this code please?

volanja added a commit that referenced this pull request Jan 25, 2017

@volanja

This comment has been minimized.

Show comment
Hide comment
@volanja

volanja Jan 25, 2017

Owner

@agx I released v0.2.17

Owner

volanja commented Jan 25, 2017

@agx I released v0.2.17

@agx

This comment has been minimized.

Show comment
Hide comment
@agx

agx Jan 25, 2017

Contributor

@volanja Thanks a lot!

Contributor

agx commented Jan 25, 2017

@volanja Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment