Class: KuberKit::Shell::AbstractShell

Inherits:
Object
  • Object
show all
Defined in:
lib/kuber_kit/shell/abstract_shell.rb

Direct Known Subclasses

LocalShell

Constant Summary collapse

ShellError =
Class.new(KuberKit::Error)
DirNotFoundError =
Class.new(ShellError)

Instance Method Summary collapse

Instance Method Details

#exec!(command) ⇒ Object



5
6
7
# File 'lib/kuber_kit/shell/abstract_shell.rb', line 5

def exec!(command)
  raise KuberKit::NotImplementedError, "must be implemented"
end

#read(file_path) ⇒ Object



9
10
11
# File 'lib/kuber_kit/shell/abstract_shell.rb', line 9

def read(file_path)
  raise KuberKit::NotImplementedError, "must be implemented"
end

#recursive_list_files(path, name: nil) ⇒ Object



17
18
19
# File 'lib/kuber_kit/shell/abstract_shell.rb', line 17

def recursive_list_files(path, name: nil)
  raise KuberKit::NotImplementedError, "must be implemented"
end

#write(file_path, content) ⇒ Object



13
14
15
# File 'lib/kuber_kit/shell/abstract_shell.rb', line 13

def write(file_path, content)
  raise KuberKit::NotImplementedError, "must be implemented"
end