Sha256: 17992708c8d4a7e65cf98b6597ad685ea8e6cdde8eaf77f9821799cda103c2e4
Contents?: true
Size: 851 Bytes
Versions: 1
Compression:
Stored size: 851 Bytes
Contents
module Sprinkle module Installers # = Thor Installer # # This installer runs a thor task. # # == Example Usage # # The following example runs the command "thor spec" on # the remote server. # # package :spec do # thor 'spec' # end # # Specify a Thorfile with the :thorfile option. # # package :spec do # thor 'spec', :file => "/var/setup/Thorfile" # end class Thor < Rake api do def thor(task, options = {}, &block) install Thor.new(self, task, options, &block) end end protected def executable #:nodoc: "thor" end def taskfile #:nodoc: file = @options[:thorfile] || @options[:file] file ? "-f #{file} " : "" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprinkle-0.7.2 | lib/sprinkle/installers/thor.rb |