Class: Sprinkle::Script
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.sprinkle(script, filename = '__SCRIPT__') ⇒ Object
3 4 5 6 7 |
# File 'lib/sprinkle/script.rb', line 3 def self.sprinkle(script, filename = '__SCRIPT__') powder = new powder.instance_eval script, filename powder.sprinkle end |
Instance Method Details
#sprinkle ⇒ Object
9 10 11 |
# File 'lib/sprinkle/script.rb', line 9 def sprinkle @deployment.process if @deployment end |