Sha256: 965d7375412bc52172788f3bb013759cde8a7502924d7240447642c75ccb7661

Contents?: true

Size: 647 Bytes

Versions: 68

Compression:

Stored size: 647 Bytes

Contents

module Sprinkle
  # = Programmatically Run Sprinkle
  #
  # Sprinkle::Script gives you a way to programatically run a given
  # sprinkle script. 
  class Script
    # Run a given sprinkle script. This method is <b>blocking</b> so
    # it will not return until the sprinkling is complete or fails.
    #--
    # FIXME: Improve documentation, possibly notify user how to tell
    # if a sprinkling failed.
    #++
    def self.sprinkle(script, filename = '__SCRIPT__')
      powder = new
      powder.instance_eval script, filename
      powder.sprinkle
    end

    def sprinkle #:nodoc:
      @deployment.process if @deployment
    end
  end
end

Version data entries

68 entries across 68 versions & 13 rubygems

Version Path
auser-sprinkle-0.1.6 lib/sprinkle/script.rb
crafterm-sprinkle-0.1.6 lib/sprinkle/script.rb
crafterm-sprinkle-0.1.7 lib/sprinkle/script.rb
crafterm-sprinkle-0.1.8 lib/sprinkle/script.rb
crafterm-sprinkle-0.1.9 lib/sprinkle/script.rb
crafterm-sprinkle-0.2.0 lib/sprinkle/script.rb
crafterm-sprinkle-0.2.1 lib/sprinkle/script.rb
crafterm-sprinkle-0.2.2 lib/sprinkle/script.rb
crafterm-sprinkle-0.2.3 lib/sprinkle/script.rb
crafterm-sprinkle-0.2.4 lib/sprinkle/script.rb
crafterm-sprinkle-0.2.5 lib/sprinkle/script.rb
crafterm-sprinkle-0.2.6 lib/sprinkle/script.rb
jemmyw-sprinkle-0.2.3 lib/sprinkle/script.rb
jemmyw-sprinkle-0.2.4 lib/sprinkle/script.rb
jsierles-sprinkle-0.1.9 lib/sprinkle/script.rb
justsee-sprinkle-0.2.4 lib/sprinkle/script.rb
lachlan-sprinkle-0.0.1 lib/sprinkle/script.rb
lachlan-sprinkle-0.0.10 lib/sprinkle/script.rb
lachlan-sprinkle-0.0.11 lib/sprinkle/script.rb
lachlan-sprinkle-0.0.13 lib/sprinkle/script.rb