Class: Docker::RSpec::Run
- Inherits:
-
Object
- Object
- Docker::RSpec::Run
- Defined in:
- lib/docker/rspec/run.rb
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(options = {}) ⇒ Run
constructor
A new instance of Run.
- #run! ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Run
Returns a new instance of Run.
6 7 8 9 10 11 |
# File 'lib/docker/rspec/run.rb', line 6 def initialize( = {})! @container = [:container] || 'rspec' = [:docker] = [:rspec] run! end |
Instance Method Details
#command ⇒ Object
13 14 15 |
# File 'lib/docker/rspec/run.rb', line 13 def command @command ||= "docker-compose #{@docker_options} exec #{@container} rspec #{@rspec_options}" end |
#run! ⇒ Object
17 18 19 |
# File 'lib/docker/rspec/run.rb', line 17 def run! $stdout.puts exec command end |