Sha256: eebab48fb06ff5dcbaf9dec9abb529118b1c8775094b4f9cb947bc742fbced20
Contents?: true
Size: 889 Bytes
Versions: 11
Compression:
Stored size: 889 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. Specify an optional Rakefile with # the :rakefile option. # # package :spec do # rake 'spec', :rakefile => "/var/setup/Rakefile" # end class Rake < Installer api do def rake(name, options = {}, &block) install 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
11 entries across 11 versions & 1 rubygems