Class: VagrantSpec::Command::Test
- Inherits:
-
Object
- Object
- VagrantSpec::Command::Test
- Defined in:
- lib/vagrant_spec/command/test.rb
Overview
This command instantiates serveral files for deployment and testing
argv env [Vagrant::Environment]
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(argv, env) ⇒ Test
constructor
A new instance of Test.
- #parse_opts ⇒ Object
Constructor Details
#initialize(argv, env) ⇒ Test
Returns a new instance of Test.
12 13 14 |
# File 'lib/vagrant_spec/command/test.rb', line 12 def initialize(argv, env) super end |
Instance Method Details
#execute ⇒ Object
16 17 18 19 |
# File 'lib/vagrant_spec/command/test.rb', line 16 def execute return unless parse_opts VagrantSpec::TestPlan.new(@env).run end |
#parse_opts ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/vagrant_spec/command/test.rb', line 21 def parse_opts opts = OptionParser.new do |o| o. = "\nRun the tests configured in the Vagrantfile" o.separator '' o.separator 'Usage: vagrant spec test' o.separator '' end (opts) end |