0.0
No commit activity in last 3 years
No release in over 3 years
Generate rake distribute:install, uninstall, and diff tasks to distribute items (files, templates, directories, etc.) to difference locations. It is the saver to use rake tasks to manage 1 -> n file distribution. Commonly applied cases are runcom files, Makefiles, etc. Those files exists in many locations and are almost identical with slight difference.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 2.0.9
>= 10.0.0
>= 1.3.7
 Project Readme

rake-distribute

DESCRIPTION:

Generate rake distribute:install, uninstall, and diff tasks to distribute items (files, templates, directories, etc.) to difference locations.

It is the saver to use rake tasks to manage 1 -> n file distribution. Commonly applied cases are runcom files, Makefiles, etc. Those files exists in many locations and are almost identical with slight difference.

INSTALL:

  • gem install rake-distribute

SYNOPSIS:

Basic Usage

distribute :FileItem do
  from "/path/from"
  to "/path/to"
end

distribute :ErbFile do
  build_dir "build/distribute" # optional
  from "/path/from.erb"
  to "/path/to"
  with_context {:a => 1, :b => 2} # optional
  diff do |dest, src| # optional
    sh %Q{vimdo diff "#{dest}" "#{src}"}
  end
end

distribute :TiltFile do
  prefer Tilt::BlueClothTemplate # optional
  from "/path/from"
  to "/path/to"
  with_context {:a => 1, :b => 2} # optional
end

Include Simple Build Proc

distribute :FileItem do
  build_dir "build/distribute" # optional
  from "/path/from.c"
  build :to => 'to' do |from, to|
    sh %Q{gcc "#{from}" -o "#{to}"}
  end
  to "/usr/bin/to"
end

DEVELOPERS:

After checking out the source, run:

$ rake newb

This task will install any missing dependencies, run the tests/specs, and generate the RDoc.

LICENSE:

Copyright (c) 2013 Zhao Cai caizhaoff@gmail.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.