Sha256: f76c0c557fa46a066b0228bb5ad2b848d07b51b79667ed381f9cb435863b461a
Contents?: true
Size: 830 Bytes
Versions: 6
Compression:
Stored size: 830 Bytes
Contents
module Sprinkle module Installers # = Rake Installer # # 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 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
6 entries across 6 versions & 1 rubygems