Skip to content

da99/Bashy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bashy

Classes to help you generate common tasks using bash:

  • creating/deleting files and directories.
  • chmod
  • chdir

Installation

gem install Bashy

Usage

require "Bashy"

cmd = Bashy_File.new { |o|

  o.mode 0770
  o.sudo true
  o.path "/my_secret_dir"
  
}.create

`#{cmd}`

Available classes:

  • Bashy_File
  • Bashy_Dir
  • Bashy_Apt

Run Tests

git clone git@github.com:da99/Bashy.git
cd Bashy
bundle update
bundle exec bacon spec/main.rb

"I hate writing."

If you know of existing software that makes the above redundant, please tell me. The last thing I want to do is maintain code.

About

A Ruby gem to generate Bash commands for common tasks: files, dirs, apt.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages