Sha256: d07228e5fa455141770df6dfccd2aedd6fac2041c1a31b03ff61a028c7a3e97a
Contents?: true
Size: 977 Bytes
Versions: 1
Compression:
Stored size: 977 Bytes
Contents
module Sprinkle module Installers # This installer runs a rake command. # # == Example Usage # # The following example runs the command "rake spec" on # the remote server. # # package :spec do # rake 'spec' # end # # Specify a Rakefile with the :rakefile option. # # package :spec, :rakefile => "/var/setup/Rakefile" do # rake 'spec' # end class Rake < Installer api do def rake(name, options = {}, &block) install Sprinkle::Installers::Rake.new(self, name, options, &block) end end def initialize(parent, commands, options = {}, &block) #:nodoc: super parent, options, &block @commands = commands end protected def install_commands #:nodoc: file = @options[:rakefile] ? "-f #{@options[:rakefile]} " : "" "rake #{file}#{@commands}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprinkle-0.5.0.rc1 | lib/sprinkle/installers/rake.rb |