Class: Charyf::Command::ServerCommand

Inherits:
Base show all
Includes:
EnvironmentArgument
Defined in:
lib/charyf/utils/commands/server/server_command.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from EnvironmentArgument

included

Methods inherited from Base

banner, base_name, command_name, desc, desc_file, executable, #help, hide_command!, inherited, namespace, perform, printing_commands

Methods included from Actions

#load_generators, #require_application_and_environment!, #start_interfaces!, #start_pipeline!

Instance Method Details

#performObject



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/charyf/utils/commands/server/server_command.rb', line 15

def perform
  extract_environment_option

  # CHARYF_ENV needs to be set before application is required.
  ENV["CHARYF_ENV"] = options[:environment]

  require_application_and_environment!

  start_interfaces!

  start_pipeline!

end