Class: GrokCLI::Docker::Rails::RSpec
- Inherits:
-
Object
- Object
- GrokCLI::Docker::Rails::RSpec
- Defined in:
- lib/grok_cli/docker/rails/rspec.rb
Instance Method Summary collapse
- #execute(test_options = "") ⇒ Object
-
#initialize(config = GrokCLI::Docker::Configuration.new) ⇒ RSpec
constructor
A new instance of RSpec.
Constructor Details
#initialize(config = GrokCLI::Docker::Configuration.new) ⇒ RSpec
Returns a new instance of RSpec.
3 4 5 |
# File 'lib/grok_cli/docker/rails/rspec.rb', line 3 def initialize(config = GrokCLI::Docker::Configuration.new) @config = config end |
Instance Method Details
#execute(test_options = "") ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/grok_cli/docker/rails/rspec.rb', line 7 def execute( = "") GrokCLI::Docker::Boot.new.execute GrokCLI::Docker::UpdateEtcHosts.new.execute system <<~CMD eval "$(docker-machine env #{@config.machine_name})" docker-compose run --rm web bundle exec rspec #{} CMD end |