Sha256: 28e9793340b2521cf08f5f615489429e1fb6b5b301a1da5d727116bd116be112
Contents?: true
Size: 309 Bytes
Versions: 2
Compression:
Stored size: 309 Bytes
Contents
require 'rake/tasklib' def sshtask(name=:ssh, *args, &block) Albacore::SshTask.new(name, *args, &block) end module Albacore class SshTask < Albacore::AlbacoreTask def execute(task_args) @ssh = Ssh.new @block.call(@ssh, *task_args) unless @block.nil? @ssh.execute end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.0.9 | lib/rake/sshtask.rb |
albacore-0.0.8 | lib/rake/sshtask.rb |