Skip to content
Browse files

Update Rulefile. [admin]

  • Loading branch information...
1 parent 09f635b commit f6695e1d0f25d639f65437a117060bc3790ecac1 @trans trans committed May 23, 2012
Showing with 16 additions and 28 deletions.
  1. +16 −28 Rulefile
View
44 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

0 comments on commit f6695e1

Please sign in to comment.
Something went wrong with that request. Please try again.