Module: Orats::Commands::Project::Server

Included in:
Exec
Defined in:
lib/orats/commands/project/server.rb

Constant Summary collapse

START_COMMAND =
'bundle exec foreman start'

Instance Method Summary collapse

Instance Method Details

#server_startObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/orats/commands/project/server.rb', line 10

def server_start
  @options[:skip_server_start] ? message = 'Start your' : message = 'Starting'

  puts '', '='*80
  log_status_top 'action', "#{message} server with the following commands", :cyan
  log_status_bottom 'command', "cd #{@active_path}", :magenta, true
  log_status_bottom 'command', START_COMMAND, :magenta
  puts '='*80, ''

  attempt_to_start unless @options[:skip_server_start]
end