Class: KuberKit::Shell::AbstractShell
- Defined in:
- lib/kuber_kit/shell/abstract_shell.rb
Direct Known Subclasses
Constant Summary collapse
- ShellError =
Class.new(KuberKit::Error)
- DirNotFoundError =
Class.new(ShellError)
Instance Method Summary collapse
- #exec!(command) ⇒ Object
- #interactive!(command) ⇒ Object
- #read(file_path) ⇒ Object
- #recursive_list_files(path, name: nil) ⇒ Object
- #replace!(shell_name: nil, env: []) ⇒ Object
- #sync(local_path, remote_path, exclude: nil) ⇒ Object
- #write(file_path, content) ⇒ Object
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 |
#interactive!(command) ⇒ Object
9 10 11 |
# File 'lib/kuber_kit/shell/abstract_shell.rb', line 9 def interactive!(command) raise KuberKit::NotImplementedError, "must be implemented" end |
#read(file_path) ⇒ Object
17 18 19 |
# File 'lib/kuber_kit/shell/abstract_shell.rb', line 17 def read(file_path) raise KuberKit::NotImplementedError, "must be implemented" end |
#recursive_list_files(path, name: nil) ⇒ Object
25 26 27 |
# File 'lib/kuber_kit/shell/abstract_shell.rb', line 25 def recursive_list_files(path, name: nil) raise KuberKit::NotImplementedError, "must be implemented" end |
#replace!(shell_name: nil, env: []) ⇒ Object
13 14 15 |
# File 'lib/kuber_kit/shell/abstract_shell.rb', line 13 def replace!(shell_name: nil, env: []) raise KuberKit::NotImplementedError, "must be implemented" end |
#sync(local_path, remote_path, exclude: nil) ⇒ Object
29 30 31 |
# File 'lib/kuber_kit/shell/abstract_shell.rb', line 29 def sync(local_path, remote_path, exclude: nil) raise KuberKit::NotImplementedError, "must be implemented" end |
#write(file_path, content) ⇒ Object
21 22 23 |
# File 'lib/kuber_kit/shell/abstract_shell.rb', line 21 def write(file_path, content) raise KuberKit::NotImplementedError, "must be implemented" end |