{"id":15066826,"url":"https://github.com/johnae/sambal","last_synced_at":"2025-05-16T12:10:51.629Z","repository":{"id":3044898,"uuid":"4066026","full_name":"johnae/sambal","owner":"johnae","description":"Ruby Samba Client","archived":false,"fork":false,"pushed_at":"2024-12-19T17:24:11.000Z","size":122,"stargazers_count":36,"open_issues_count":3,"forks_count":46,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-12T08:38:30.464Z","etag":null,"topics":["ruby","ruby-samba-client","samba"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-04-18T16:56:06.000Z","updated_at":"2025-01-15T16:54:04.000Z","dependencies_parsed_at":"2024-09-29T11:24:36.770Z","dependency_job_id":"929aecb2-8a74-4dcb-9d85-e2caef4545d5","html_url":"https://github.com/johnae/sambal","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnae%2Fsambal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnae%2Fsambal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnae%2Fsambal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnae%2Fsambal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnae","download_url":"https://codeload.github.com/johnae/sambal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527099,"owners_count":22085919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ruby","ruby-samba-client","samba"],"created_at":"2024-09-25T01:12:48.467Z","updated_at":"2025-05-16T12:10:51.572Z","avatar_url":"https://github.com/johnae.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Test status](https://github.com/johnae/sambal/actions/workflows/ci.yaml/badge.svg)\n\n# Sambal\n\nSambal is a ruby samba client\n\nQuite a bit of code was borrowed from https://github.com/reivilo/rsmbclient - Thanks!\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'sambal'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install sambal\n\n## Requirements\n\nA working installation of samba, specifically the \"smbclient\" command line utility. See http://www.samba.org for more information.\nOn a mac this can be installed through homebrew https://github.com/mxcl/homebrew, like this:\n\n    brew install samba\n\nOn Linux (Ubuntu) it's as easy as:\n\n    apt-get install smbclient\n\nIt should be available in a similar way on all major Linux distributions.\n\nIf you happen to be running [NixOS](https://nixos.org/) or at least the [Nix package manager](https://nixos.org/nix/download.html) you could just\nuse the `flake.nix` file in this repo. That should also set you up for running the tests (which require samba). Something like this:\n\n    nix develop\n    bundle install\n    bundle exec rspec\n\n## Usage\n\n    client = Sambal::Client.new(domain: 'WORKGROUP', host: '127.0.0.1', share: '', user: 'guest', password: '--no-pass', port: 445)\n    client.ls # returns hash of files\n    client.put(\"local_file.txt\",\"remote_file.txt\") # uploads file to server\n    client.exists?(\"remote_file.txt\") # checks if file is on server\n    client.put_content(\"My content here\", \"remote_file\") # uploads content to a file on server\n    client.get(\"remote_file.txt\", \"local_file.txt\") # downloads file from server\n    client.del(\"remote_file.txt\") # deletes files from server\n    client.exists?(\"some_directory\") # checks if directory is on server\n    client.cd(\"some_directory\") # changes directory on server\n    client.close # closes connection\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnae%2Fsambal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnae%2Fsambal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnae%2Fsambal/lists"}