Skip to content

Commit

Permalink
update rake installer to use arbitrary block options
Browse files Browse the repository at this point in the history
  • Loading branch information
jsierles2 authored and crafterm committed Nov 27, 2008
1 parent d652feb commit a64fa21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/sprinkle/installers/rake.rb
Expand Up @@ -20,7 +20,7 @@ module Installers
# end

class Rake < Installer
def initialize(parent, commands = [], options = {}, &block) #:nodoc:
def initialize(parent, commands, options = {}, &block) #:nodoc:
super parent, options, &block
@commands = commands.to_a
end
Expand Down
6 changes: 3 additions & 3 deletions lib/sprinkle/package.rb
Expand Up @@ -145,9 +145,9 @@ def source(source, options = {}, &block)
@recommends << :build_essential # Ubuntu/Debian
@installer = Sprinkle::Installers::Source.new(self, source, options, &block)
end

def rake(*names, &block)
@installer = Sprinkle::Installers::Rake.new(self, options, *names, &block)
def rake(name, options = {}, &block)
@installer = Sprinkle::Installers::Rake.new(self, name, options, &block)
end

def verify(description = '', &block)
Expand Down

0 comments on commit a64fa21

Please sign in to comment.