{"id":22980946,"url":"https://github.com/rubyworks/ratch","last_synced_at":"2025-10-28T00:15:36.965Z","repository":{"id":56890987,"uuid":"280228","full_name":"rubyworks/ratch","owner":"rubyworks","description":"Ruby Batch Scripts","archived":false,"fork":false,"pushed_at":"2012-06-19T04:14:18.000Z","size":820,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-07T22:09:26.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubyworks.github.com/ratch","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubyworks.png","metadata":{"files":{"readme":"README.rdoc","changelog":"HISTORY.rdoc","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-08-17T18:59:58.000Z","updated_at":"2013-12-12T14:02:46.000Z","dependencies_parsed_at":"2022-08-20T16:00:53.441Z","dependency_job_id":null,"html_url":"https://github.com/rubyworks/ratch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyworks","download_url":"https://codeload.github.com/rubyworks/ratch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229773540,"owners_count":18122031,"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":[],"created_at":"2024-12-15T01:46:15.779Z","updated_at":"2025-10-28T00:15:36.879Z","avatar_url":"https://github.com/rubyworks.png","language":"Ruby","readme":"= Ratch \n\nRuby-based Batch Scripts\n\n\n== Introduction\n\nRatch is Ruby-based DSL for building batch scripts. It's intent\nis to ease the burden of batch script writers by supplementing\nthe standard ruby environment to be more conducive to the needs\nof batch scripting.\n\nIn addition to using Ratch to write stand-alone batch scripts,\nit makes a very powerful library for other applications that\nrequire batch-like functionality. In general any program that\naccess the file system extensively could benefit from it's use.\n\n\n== Resources\n\n* home: http://rubyworks.github.com/ratch\n* code: http://github.com/rubyworks/ratch\n* talk: http://googlegroups.com/\n\n== Usage\n\n=== Batch Scripting\n\nTo use for your own scripts, simply add a bang line.\n\n  #!/usr/bin/env ratch\n\nOn Windows, of course, you will want to associate the .ratch extension\nname to the ratch executable instead.\n\n=== As a Library\n\nTo use Ratch as a library, require 'ratch' and create an instance of\nRatch::Shell.\n\nIf you wish to extend Ratch::Shell for your application, it is recommend\nthat you either subclass Ratch::Shell, e.g.\n\n  require 'ratch'\n\n  class MyClass \u003c Ratch::Shell\n\n\n  end\n\nOr delegate to a Ratch::Shell instance, e.g.\n\n  require 'ratch'\n\n  class MyClass\n\n    def initialize(path)\n      @shell = Ratch::Shell.new(path)\n    end\n\n  end\n\nFor details on all the functionality Ratch provides, please refer to\nthe API documentation.\n\n\n== Bonus Feature\n\nRatch also includes the `ludo` command, which stands for \"lookup and do\".\nIt will ascend up the directory tree searching for a matching executable \nscript. If it finds one it will execute the script relative the currently\nascended directory.\n\n\n== Installation\n\nStandard installation procedure apply.\n\n  $ gem install ratch\n\nor manually using Setup.rb\n\n  $ tar -xzf ratch-1.0.0.tgz\n  $ cd ratch-1.0.0\n  $ setup.rb\n\n\n== Development\n\nRatch is hosted on GitHub.\n\nTo pull the 'ratch' repository anonymously, use:\n\n    git clone git://github.com/rubyworks/ratch.git\n        \n\n== Copying\n\nCopyright (c) 2008 Thomas Sawyer\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this program except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyworks%2Fratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fratch/lists"}