From f6695e1d0f25d639f65437a117060bc3790ecac1 Mon Sep 17 00:00:00 2001 From: 7rans Date: Wed, 23 May 2012 13:02:41 -0400 Subject: [PATCH] Update Rulefile. [admin] --- Rulefile | 44 ++++++++++++++++---------------------------- 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/Rulefile b/Rulefile index 3f5286e..98a5a2d 100644 --- a/Rulefile +++ b/Rulefile @@ -1,39 +1,36 @@ #!/usr/bin/env ruby -# @todo move to reap proper -#require 'facets/string/file' -require 'facets/kernel/ask' # TODO: make sure reap provides this +# TODO: Do things in ruby where possible instead of shelling out! -# -# TODO: Do things in ruby instead of shelling out! -# +ignore 'doc', 'log', 'pkg', 'tmp', 'site', 'web', 'work' -ignore 'pkg', 'site' +# TODO: Eventually Fire should provide access to metadata via a utility method. +version = File.read('meta/version').strip -trip 'manifest' do +desc "update manifest" +task 'manifest' do system 'mast -u' end -trip 'release' do +desc "release and tag" +task 'release' do exit -1 unless system('detroit release') - system 'pom news | git tag -a -F - #{version}' + system 'vclog-news | git tag -a -F - #{version}' end -file 'VERSION' do - # `dotruby -r meta -r VERSION` - system 'pom spec -u' +file 'meta' do + system 'dotruby source meta' end -file 'PROFILE' do - # TODO: Ultimately `dotruby` should be able to do this. - # `dotruby -r meta -r VERSION` - system 'pom spec -u' +file 'lib' do + exit -1 unless system('detroit test') end -file 'lib/**/*' do +file 'demo' do exit -1 unless system('detroit test') end +=begin state :create_project do ! File.exist?('.ruby') # gem install dotruby @@ -55,14 +52,5 @@ rule :create_project do # end #end end +=end - -#require 'facets/functor' -#class String -# def file -# str = self -# Functor.new do |op,*a,&b| -# FileUtils.send(op,str,*a,&b) -# end -# end -#end