Class: Charyf::Command::CliCommand

Inherits:
Base show all
Includes:
EnvironmentArgument
Defined in:
lib/charyf/utils/commands/cli/cli_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!

Instance Method Details

#performObject



102
103
104
105
106
107
108
109
110
111
# File 'lib/charyf/utils/commands/cli/cli_command.rb', line 102

def perform
  extract_environment_option

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

  require_application_and_environment!

  Charyf::CLI.start
end