Sha256: 01e1e353e90b8011b67357dfb49cc5c251c40270be7a3ed651299d0bc4d77f5d

Contents?: true

Size: 644 Bytes

Versions: 12

Compression:

Stored size: 644 Bytes

Contents

class KuberKit::Shell::AbstractShell
  ShellError = Class.new(KuberKit::Error)
  DirNotFoundError = Class.new(ShellError)

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

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

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

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

  def sync(local_path, remote_path, exclude: nil)
    raise KuberKit::NotImplementedError, "must be implemented"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kuber_kit-0.3.0 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.2.9 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.2.8 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.2.7 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.2.6 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.2.5 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.2.4 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.2.3 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.2.2 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.2.1 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.2.0 lib/kuber_kit/shell/abstract_shell.rb
kuber_kit-0.1.9 lib/kuber_kit/shell/abstract_shell.rb