Module: Dockerspec::Serverspec::RSpecResources
- Defined in:
- lib/dockerspec/serverspec/rspec_resources.rb
Overview
Some resources included inside RSpec::Core::ExampleGroup to build and run Docker containers with Serverspec.
RSpec Settings
family
: The OS family to use
All the RSpec settings are optional.
Instance Method Summary collapse
-
#docker_run(*opts) ⇒ Dockerspec::ServerspecRunner
Runs a docker image and the Serverspec tests against it.
Instance Method Details
#docker_run(*opts) ⇒ Dockerspec::ServerspecRunner
Runs a docker image and the Serverspec tests against it.
See the Serverspec Resource Types documentation to see the available resources.
By default tries to detect the most appropriate Docker backend: native or LXC.
160 161 162 163 |
# File 'lib/dockerspec/serverspec/rspec_resources.rb', line 160 def docker_run(*opts) runner = Dockerspec::Serverspec::Runner.new(*opts) runner.run end |