class Sprinkle::Deployment::Deployment

Public Instance Methods

delivery(type, &block) click to toggle source

Specifies which Sprinkle::Actors to use for delivery. Although all actors jobs are the same: to run remote commands on a server, you may have a personal preference. The block you pass is used to configure the actor. For more information on what configuration options are available, view the corresponding Sprinkle::Actors page.

# File lib/sprinkle/deployment.rb, line 61
def delivery(type, &block) #:doc:
  type=type.to_s.titleize
  type="SSH" if type=="Ssh"
  @style = ("Sprinkle::Actors::" + type).constantize.new(&block)
end