lib/sprinkle/installers/thor.rb in sprinkle-0.4.2 vs lib/sprinkle/installers/thor.rb in sprinkle-0.5.0.rc1
- old
+ new
@@ -18,9 +18,16 @@
# package :spec, :thorfile => "/var/setup/Thorfile" do
# thor 'spec'
# end
class Thor < Installer
+
+ api do
+ def thor(name, options = {}, &block)
+ install Sprinkle::Installers::Thor.new(self, name, options, &block)
+ end
+ end
+
def initialize(parent, commands, options = {}, &block) #:nodoc:
super parent, options, &block
@commands = commands
end