{"id":19558514,"url":"https://github.com/mach-kernel/lazywake","last_synced_at":"2025-07-23T09:36:09.653Z","repository":{"id":146171065,"uuid":"66487719","full_name":"mach-kernel/lazywake","owner":"mach-kernel","description":"Better wakeonlan replacement that intuitively uses your ARP table to cache hostnames.","archived":false,"fork":false,"pushed_at":"2017-03-14T21:33:49.000Z","size":145,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T08:19:14.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mach-kernel.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-08-24T18:07:32.000Z","updated_at":"2017-03-14T21:06:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef6e1f07-2fc9-4819-bb6c-9c2198fdee70","html_url":"https://github.com/mach-kernel/lazywake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mach-kernel/lazywake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mach-kernel%2Flazywake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mach-kernel%2Flazywake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mach-kernel%2Flazywake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mach-kernel%2Flazywake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mach-kernel","download_url":"https://codeload.github.com/mach-kernel/lazywake/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mach-kernel%2Flazywake/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266655681,"owners_count":23963554,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-11T04:47:21.060Z","updated_at":"2025-07-23T09:36:09.629Z","avatar_url":"https://github.com/mach-kernel.png","language":"Ruby","readme":"# lazywake\n[![Code Climate GPA](https://codeclimate.com/github/mach-kernel/lazywake/badges/gpa.svg)](https://codeclimate.com/github/mach-kernel/lazywake)\n[![CircleCI](https://circleci.com/gh/mach-kernel/lazywake/tree/master.svg?style=shield)](https://circleci.com/gh/mach-kernel/lazywake/tree/master)\n[![Test Coverage](https://codeclimate.com/github/mach-kernel/lazywake/badges/coverage.svg)](https://codeclimate.com/github/mach-kernel/lazywake/coverage)\n[![Issue Count](https://codeclimate.com/github/mach-kernel/lazywake/badges/issue_count.svg)](https://codeclimate.com/github/mach-kernel/lazywake)\n* [Homepage](https://rubygems.org/gems/lazywake)\n* [Documentation](http://rubydoc.info/gems/lazywake/frames)\n\n**NOTE:** This is still a work in progress and a lot of features are not done yet. I fill things in as I go!\n\n## Description\nA better wake-on-lan utility that saves hostname to hardware address mappings. \n\n## Getting Started\n\n##### Wake a host by name\n`lazywake myhost`\n\n##### Wake a host, then do something\n\n```bash\nlazywake myhost echo 'done'\n# =\u003e done\n```\n\n##### Wake a host, wait for it to come up, then use the SSH plugin to log in\n```bash\nlazywake myhost ssh\n# =\u003e (...myhost's MOTD)\n``` \n\n## Plugins\n\nA `plugin` is a subclass of `Lazywake::Command::Default` that implements additional behavior for sake of terseness and readability.\n\nConsider connecting to an SSH host after sending a magic packet:\n\nDoing `lazywake myhost ssh user@myhost` seems redundant: we know our current user and the destination host. We can do less typing, so why not just `lazywake myhost ssh`?\n\n### Creating a plugin\nIn typical Ruby fashion, there's a DSL for this!\n\n##### Define the foobar command\n```ruby\nLazywake::Command.describe do \n  # Program to locate via `which`\n  name 'foobar'\n\n  # How long should we wait for the host to wake up? In this case, we would\n  # send 10 packets, 1 per second, stopping on first reply and replacing the\n  # process, or waiting 10s for all 10 pings to time out.\n  await_for 10\n\n  # Before we replace the process,\n  # you can do whatever manipulations you'd like on the args\n  map_proc do |args|\n    args[0].upcase!\n  end\nend\n```\n\n## Credits\nCopyright (c) David Stancu 2016 \nSee LICENSE.txt for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmach-kernel%2Flazywake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmach-kernel%2Flazywake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmach-kernel%2Flazywake/lists"}