Module: Neptuno::TTY::Command

Includes:
Config
Included in:
CLI::Base, CLI::Install
Defined in:
lib/neptuno/tty/command.rb

Overview

Wrapper class for TTY gem

Constant Summary collapse

TTY =
::TTY::Command.new(printer: :null)
TTYP =
::TTY::Command.new(printer: :pretty)

Constants included from Config

Neptuno::TTY::Config::ABORT_MESSAGE

Constants included from File

File::ABORT_MESSAGE

Instance Method Summary collapse

Methods included from Config

#auto_restart_procs, #config, #configured_services, #docker_compose_hash, #docker_compose_services, #get_dependants, #healthy_services, #json_services_status, #running_services, #services, #services_with_procs, #starting_services

Methods included from File

#file, #in_service?, #make_service_files, #neptuno_path, #project, #service

Instance Method Details

#commandObject



11
12
13
# File 'lib/neptuno/tty/command.rb', line 11

def command
  TTY
end

#command_pObject



15
16
17
# File 'lib/neptuno/tty/command.rb', line 15

def command_p
  TTYP
end

#neptuno_command(command) ⇒ Object



19
20
21
# File 'lib/neptuno/tty/command.rb', line 19

def neptuno_command(command)
  `cd #{neptuno_path} && #{command}`
end