class Myway::Run

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

Public Instance Methods

run_tests() click to toggle source
# 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_server() click to toggle source
# 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

Private Instance Methods

display_break() click to toggle source
# File lib/myway.rb, line 53
def display_break
  puts '------------------------------'
end