Skip to content

Commit

Permalink
Update Rulefile. [admin]
Browse files Browse the repository at this point in the history
  • Loading branch information
trans committed May 23, 2012
1 parent 09f635b commit f6695e1
Showing 1 changed file with 16 additions and 28 deletions.
44 changes: 16 additions & 28 deletions 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
Expand All @@ -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

0 comments on commit f6695e1

Please sign in to comment.