Sha256: c9a436c2e231a69117afdacaaa4c5953a869945617789899517840b235167198

Contents?: true

Size: 256 Bytes

Versions: 9

Compression:

Stored size: 256 Bytes

Contents

module Sprinkle
  class Script
    def self.sprinkle(script, filename = '__SCRIPT__')
      powder = new
      powder.instance_eval script, filename
      powder.sprinkle
    end

    def sprinkle
      @deployment.process if @deployment
    end
  end
end

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
auser-sprinkle-0.1.5 lib/sprinkle/script.rb
crafterm-sprinkle-0.1.0 lib/sprinkle/script.rb
crafterm-sprinkle-0.1.1 lib/sprinkle/script.rb
crafterm-sprinkle-0.1.2 lib/sprinkle/script.rb
crafterm-sprinkle-0.1.4 lib/sprinkle/script.rb
crafterm-sprinkle-0.1.5 lib/sprinkle/script.rb
mitchellh-sprinkle-0.1.5 lib/sprinkle/script.rb
sprinkle-0.1.4 lib/sprinkle/script.rb
sprinkle-0.1.5 lib/sprinkle/script.rb