inspec/docs/resources
Adam Leff 1cf80737ad Yum resource fix for non-existent repos and repo info
If a repo did not exist, running matchers against it (such as `exist`)
were failing due to a bug in `#to_s` when fetching the repo name. The
`info` method would return nil and we'd still try to treat it as a hash.

This change ensures that info is always a hash, possibly empty if the
repo doesn't exist, and uses the repo name provided by the user rather
than shortening it to be consistent with our other resources which don't
manipulate the user input in the formatter.

Also added a method_missing to allow users to interrogate repo options,
such as baseurl or gpgcheck.

Signed-off-by: Adam Leff <adam@leff.co>
2017-03-29 10:42:25 +02:00
..
apache_conf.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
apt.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
audit_policy.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
auditd_conf.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
auditd_rules.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
bash.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
bond.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
bridge.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
bsd_service.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
command.md.erb Use double quotes to prevent escaping backslash in the expected string 2017-01-16 12:30:57 +09:00
crontab.md.erb Add additional example for matching crontab commands 2017-03-14 22:16:39 +01:00
csv.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
directory.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
etc_group.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
etc_passwd.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
etc_shadow.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
file.md.erb Update file.md with example how to test symlinked files. 2017-03-15 07:53:14 +01:00
gem.md.erb Extend gem to take an optional gem_binary 2017-03-24 22:28:42 -07:00
group.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
grub_conf.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
host.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
http.md.erb improve http header handling 2017-01-26 17:16:37 +01:00
iis_site.md.erb Remove trailing \\ from iis_site example 2016-12-09 10:00:10 -05:00
inetd_conf.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
ini.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
interface.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
iptables.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
json.md.erb Fixing a typo 2017-03-03 14:03:54 -05:00
kernel_module.md.erb Add version method to kernel_module 2017-01-27 13:33:41 +03:00
kernel_parameter.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
key_rsa.md refactor x509 resources and rsa key 2017-03-22 11:44:32 +01:00
launchd_service.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
limits_conf.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
login_def.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
mount.md.erb Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00
mysql_conf.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
mysql_session.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
npm.md.erb Fixes resources in the docs 2016-11-19 17:57:03 -08:00
ntp_conf.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
oneget.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
os.md.erb Update os.md.erb 2017-01-08 19:59:02 -05:00
os_env.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
package.md.erb docs: quoted version for package resource example 2016-11-16 11:24:19 +00:00
parse_config.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
parse_config_file.md.erb Headers and list elements that include more than one _ character were being rendered incorrectly. (Perhaps it is only when there are an even number but in any case I only found words with either one or two _s.) 2016-10-20 07:07:18 -04:00
pip.md.erb Fixes resources in the docs 2016-11-19 17:57:03 -08:00
port.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
postgres_conf.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
postgres_session.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
powershell.md.erb Fixes resources in the docs 2016-11-19 17:57:03 -08:00
processes.md.erb Fix resource name 2017-01-20 22:19:02 +09:00
registry_key.md.erb Remove extra ' in registry key examples 2016-11-21 10:18:01 -06:00
runit_service.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
security_policy.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
service.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
ssh_config.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
sshd_config.md.erb 'execution' is spelled correctly 2017-01-24 23:19:30 -05:00
ssl.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
sys_info.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
systemd_service.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
sysv_service.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
upstart_service.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
user.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
users.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
vbscript.md.erb Fixes resources in the docs 2016-11-19 17:57:03 -08:00
windows_feature.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
windows_task.md.erb windows_task docs: Correct syntax error and misspelled word 2017-03-01 13:43:26 -05:00
wmi.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
x509_certificate.md refactor x509 resources and rsa key 2017-03-22 11:44:32 +01:00
xinetd_conf.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
yaml.md.erb Changing headings to align with SEO best practices 2016-09-27 12:03:23 -07:00
yum.md.erb Yum resource fix for non-existent repos and repo info 2017-03-29 10:42:25 +02:00
zfs_dataset.md.erb Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00
zfs_pool.md.erb Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00