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

Add has_module function #92

Merged
merged 1 commit into from
Mar 7, 2018
Merged

Conversation

alexjfisher
Copy link
Member

@alexjfisher alexjfisher commented Mar 7, 2018

The idea is we can use this to do things like...

if extlib::has_module('camptocamp/systemd') {
  include systemd
  systemd::unit_file { 'some.service':
    ...
  }
} else 
{
  # Do something else with execs
}

@bastelfreak bastelfreak merged commit e3ed021 into voxpupuli:master Mar 7, 2018
@bastelfreak bastelfreak added the enhancement New feature or request label Mar 7, 2018
echo($v6, 'My structure')
echo($v7) # no comment here

# debug log output
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexjfisher so pumped to see REFERENCE.md! With these examples, you can either escape the hashes (to get rid of the h1 formatting) or use an @example tag to get noformat examples.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, the other functions need revisiting to fix up their output. I was trying not to shave too many yaks this week! :)

I did notice one thing though. Should I have expected my @example to appear in REFERENCE.md?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants