Sha256: 94d62e251b39b499f6a0c4acbfb4567ca4aca2d0848a20ca93b03dd6971d30c1

Contents?: true

Size: 227 Bytes

Versions: 2

Compression:

Stored size: 227 Bytes

Contents

module Sprinkle
  module Sudo
    
    def sudo_cmd
      return "#{@delivery.try(:sudo_command) || "sudo"} " if sudo?
    end

    def sudo?
      options[:sudo] or package.sudo? or @delivery.try(:sudo?)
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sprinkle-0.7.4 lib/sprinkle/extensions/sudo.rb
sprinkle-0.7.3 lib/sprinkle/extensions/sudo.rb