Class: Myway::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/myway.rb

Overview

A class for all methods that are used to run a project

Instance Method Summary collapse

Instance Method Details

#run_testsObject



43
44
45
46
47
48
49
# File 'lib/myway.rb', line 43

def run_tests
  puts 'Running Rspec tests...'
  display_break
  success = system('rake test_myway')
  display_break
  puts success ? 'Testing completed' : 'Testing failed'
end

#start_serverObject



35
36
37
38
39
40
41
# File 'lib/myway.rb', line 35

def start_server
  puts 'Starting Myway server...'
  display_break
  return if system('rake run_myway')
  display_break
  puts 'Server failed to start'
end