Bug 219978 - [NEW PORT] sysutils/rubygem-serverspec: Test suite for server configuration
Summary: [NEW PORT] sysutils/rubygem-serverspec: Test suite for server configuration
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-14 02:11 UTC by Yuichiro NAITO
Modified: 2017-07-08 02:57 UTC (History)
1 user (show)

See Also:


Attachments
rubygem-serverspec.shar (2.08 KB, text/plain)
2017-06-14 02:11 UTC, Yuichiro NAITO
no flags Details
rubygem-specinfra.patch (1.23 KB, patch)
2017-06-14 02:11 UTC, Yuichiro NAITO
no flags Details | Diff
rubygem-rspec-its.shar (1.78 KB, text/plain)
2017-06-14 02:12 UTC, Yuichiro NAITO
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 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 freebsd_triage 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 freebsd_triage 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 freebsd_triage 2017-07-08 02:57:32 UTC
Committed, thanks!