- Implement complete test suite with 63 examples (49 unit + 14 integration tests) - Add RSpec, FactoryBot, WebMock, and SimpleCov testing dependencies - Create mocked integration tests eliminating need for real Docker containers - Fix SQLite method signature to accept login/password parameters - Enhance container discovery to handle nil labels gracefully - Add test coverage reporting and JUnit XML output for CI - Update GitHub Actions workflow to run tests before Docker builds - Add Ruby 3.3 setup with gem caching for faster CI execution - Create CI test script and comprehensive testing documentation - Ensure Docker builds only proceed when all tests pass 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
11 lines
255 B
Ruby
11 lines
255 B
Ruby
# frozen_string_literal: true
|
|
|
|
# mariadb backup command generator
|
|
class Baktainer::BackupCommand
|
|
def mariadb(login:, password:, database:)
|
|
{
|
|
env: [],
|
|
cmd: ['mysqldump', '-u', login, "-p#{password}", database]
|
|
}
|
|
end
|
|
end
|