Class: Lapidarist::TestCommand
- Inherits:
-
Object
- Object
- Lapidarist::TestCommand
- Defined in:
- lib/lapidarist/test_command.rb
Instance Method Summary collapse
-
#initialize ⇒ TestCommand
constructor
A new instance of TestCommand.
- #run ⇒ Object
- #success? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ TestCommand
Returns a new instance of TestCommand.
3 4 5 |
# File 'lib/lapidarist/test_command.rb', line 3 def initialize @shell = Shell.new end |
Instance Method Details
#run ⇒ Object
7 8 9 |
# File 'lib/lapidarist/test_command.rb', line 7 def run shell.run(to_s)[1] end |
#success? ⇒ Boolean
11 12 13 |
# File 'lib/lapidarist/test_command.rb', line 11 def success? run == 0 end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/lapidarist/test_command.rb', line 15 def to_s Lapidarist.config.test_script end |