Updated rubocop violations using `pdk validate -a`.
Remove Style/Semicolon violation
Use do/end and break statement into multiple lines. Also remove explicit return.
Remove Lint/ScriptPermission violation
rspec files are not directly executable by ruby, so remove shebang line
Most of this change is whitespace indentation.
Remove RSpec/AnyInstance violation
Just pass the hostfile as the target when creating the Puppet::Type::Host instance.
Simplify logic for validating each IPv4 tuple. Remove explicit return based on the result of the conditional.
Call cleanup after each test completes The record_tmp method needs to record the files to be deleted in the same class variable that the cleanup method uses.
Convert create based tests to rspec
Consolidate tests relating to creating host entries.
Convert destroy based tests to rspec
Consolidate tests relating to destroying host entries.
Convert modify based tests to rspec
Consolidate tests relating to modifying host entries.
Not necessary to initialize to nil, because the else clause will initialize.
Merge pull request #1 from puppetlabs/extraction
Initial host module extraction