Class: Dru::ContainerCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/dru/container_command.rb

Instance Attribute Summary

Attributes inherited from Command

#options

Instance Method Summary collapse

Methods inherited from Command

#command, #container_name_to_id, #cursor, #default_docker_compose, #docker_compose_paths, #editor, #environment, #environment_docker_compose, #exec_exist?, #generator, #pager, #platform, #project_configuration_path, #project_name, #prompt, #run_docker_compose_command, #screen, #which

Constructor Details

#initialize(command: nil, options:) ⇒ ContainerCommand

Returns a new instance of ContainerCommand.



7
8
9
10
11
12
# File 'lib/dru/container_command.rb', line 7

def initialize(command: nil, options:)
  raise MissingContainerError unless options[:container]

  @options = options
  @command = command || []
end

Instance Method Details

#execute(input: $stdin, output: $stdout) ⇒ Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/dru/container_command.rb', line 14

def execute(input: $stdin, output: $stdout)
  raise NotImplementedError
end