Bug 219978

Summary: [NEW PORT] sysutils/rubygem-serverspec: Test suite for server configuration
Product: Ports & Packages Reporter: Yuichiro NAITO <naito.yuichiro>
Component: Individual Port(s)Assignee: freebsd-ports-bugs mailing list <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: swills
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
rubygem-serverspec.shar
none
rubygem-specinfra.patch
none
rubygem-rspec-its.shar none

Description Yuichiro NAITO 2017-06-14 02:11:09 UTC
Created attachment 183469 [details]
rubygem-serverspec.shar

I like to use rubygem-serverspec for checking my FreeBSD server configuration.
With serverspec, I can write test code like RSpec semantics.

For example, following code checks zfs pool named 'zpool'
should have 'compression' property value equal to 'lz4'.

```
describe zfs('zpool') do
  its(:property) { should include('compression' => 'lz4') }
end
```

Rubygem-serverspec requires 'rubygem-specinfra' has been updated to the latest,
and 'rubygem-rspec-its' is created as new port.

I attach these 3 files,
  - rubygem-serverspec.shar
  - rubygem-specinfra.patch
  - rubygem-rspec-its.shar

Please apply to the ports tree.
Thank you.
Comment 1 Yuichiro NAITO 2017-06-14 02:11:33 UTC
Created attachment 183470 [details]
rubygem-specinfra.patch
Comment 2 Yuichiro NAITO 2017-06-14 02:12:00 UTC
Created attachment 183471 [details]
rubygem-rspec-its.shar
Comment 3 commit-hook freebsd_committer 2017-07-08 02:44:27 UTC
A commit references this bug:

Author: swills
Date: Sat Jul  8 02:44:06 UTC 2017
New revision: 445294
URL: https://svnweb.freebsd.org/changeset/ports/445294

Log:
  devel/rubygem-rspec-its: create port

  RSpec::Its provides the `its` method as a short-hand
  to specify the expected value of an attribute.

  WWW: https://github.com/rspec/rspec-its

  PR:		219978
  Submitted by:	naito.yuichiro@gmail.com

Changes:
  head/devel/Makefile
  head/devel/rubygem-rspec-its/
  head/devel/rubygem-rspec-its/Makefile
  head/devel/rubygem-rspec-its/distinfo
  head/devel/rubygem-rspec-its/pkg-descr
Comment 4 commit-hook freebsd_committer 2017-07-08 02:47:31 UTC
A commit references this bug:

Author: swills
Date: Sat Jul  8 02:47:09 UTC 2017
New revision: 445295
URL: https://svnweb.freebsd.org/changeset/ports/445295

Log:
  sysutils/rubygem-specinfra: update to 2.68.0

  PR:		219978
  Submitted by:	naito.yuichiro@gmail.com (maintainer)

Changes:
  head/sysutils/rubygem-specinfra/Makefile
  head/sysutils/rubygem-specinfra/distinfo
Comment 5 commit-hook freebsd_committer 2017-07-08 02:56:40 UTC
A commit references this bug:

Author: swills
Date: Sat Jul  8 02:56:12 UTC 2017
New revision: 445296
URL: https://svnweb.freebsd.org/changeset/ports/445296

Log:
  sysutils/rubygem-serverspec: create port

  Serverspec tests your servers' actual state by executing command local,
  via SSH, via WinRM, via Docker API and so on.
  So you don't need to install any agent software on your serves
  and can use any configuration management tools,
  Puppet, Ansible, CFEngine, Itamae and so on.

  WWW: https://serverspec.org

  PR:		219978
  Submitted by:	naito.yuichiro@gmail.com

Changes:
  head/sysutils/Makefile
  head/sysutils/rubygem-serverspec/
  head/sysutils/rubygem-serverspec/Makefile
  head/sysutils/rubygem-serverspec/distinfo
  head/sysutils/rubygem-serverspec/pkg-descr
Comment 6 Steve Wills freebsd_committer 2017-07-08 02:57:32 UTC
Committed, thanks!