0.0
No release in over 3 years
Low commit activity in last 3 years
Rake scripts helper for file system and shell commands.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 5.13

Runtime

>= 0
 Project Readme

RakeScript

RakeScript is a scripts helper for rake tasks that allows easy managing file system and shell commands.

Installation

Add this line to your application's Gemfile:

gem 'rake_script', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install rake_script

Usage

add rake file something.rake to your project with following code

require 'rake_script'

namespace :something do
  include RakeScript::RakeMethods
  
  desc 'Task that do something useful'
  task :some_task do
    with_puts_benchmark('Some task') do
      cmd 'foo --bar', env: { BAZ: 'boo' }
      abort('fail') unless folder_exist?('/path/to/created/folder')
    end
  end
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/senid231/rake_script.

License

The gem is available as open source under the terms of the MIT License.