add `package_action` attribute:

* choose to `install` or `upgrade` the package
* default to `upgrade` to preserve existing
  behavior
update deprecated rubocop pattern syntax
bump ruby to 2.1.2 for CI
Merge pull request #16 from phlipper/package-action

add `package_action` attribute