Skip to content

Commit

Permalink
Merge pull request #1806 from ekohl/declare-interface
Browse files Browse the repository at this point in the history
Declare API interface on Beaker::Host
  • Loading branch information
bastelfreak committed Apr 28, 2023
2 parents 44c98b1 + 8d6fa58 commit a5a0468
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions lib/beaker/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,30 @@ def do_rsync_to from_path, to_path, opts = {}

raise Beaker::Host::CommandFailure, result.error
end

def tmpfile(name = '')
raise NotImplementedError
end

def tmpdir(name = '')
raise NotImplementedError
end

def path_split(paths)
raise NotImplementedError
end

def rm_rf(path)
raise NotImplementedError
end

def install_package(package, cmdline_args = nil, _version = nil, opts = {})
raise NotImplementedError
end

def add_env_var(key, val)
raise NotImplementedError
end
end

%w[
Expand Down
2 changes: 1 addition & 1 deletion lib/beaker/host/freebsd/pkg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def pkgng_active?(opts = {})
execute("/bin/sh -c '#{check_pkgng_sh}'", opts) { |r| r }.exit_code == 0
end

def install_package(package, cmdline_args = nil, opts = {})
def install_package(package, cmdline_args = nil, _version = nil, opts = {})
cmd = if pkgng_active?
"pkg install #{cmdline_args || '-y'} #{package}"
else
Expand Down

0 comments on commit a5a0468

Please sign in to comment.