Class: Docker::Compose::ShellPrinter::Fish

Inherits:
Posix
  • Object
show all
Defined in:
lib/docker/compose/shell_printer/fish.rb

Overview

Printer that works with the Friendly Interactive Shell (fish).

Instance Method Summary collapse

Methods inherited from Posix

#comment

Instance Method Details

#eval_output(command) ⇒ Object



5
6
7
# File 'lib/docker/compose/shell_printer/fish.rb', line 5

def eval_output(command)
  format('eval (%s)', command)
end

#export(name, value) ⇒ Object



9
10
11
# File 'lib/docker/compose/shell_printer/fish.rb', line 9

def export(name, value)
  format('set -gx %s %s; ', name, single_quoted_escaped(value))
end

#unset(name) ⇒ Object



13
14
15
# File 'lib/docker/compose/shell_printer/fish.rb', line 13

def unset(name)
  format('set -ex %s; ', name)
end