Sha256: 59b0c4f96e175716a22e4bad003dd96586cb2dee6e5368ac01b1fbee8841ac3f
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
require 'rake/tasklib' module Albacore class SshTask < Rake::TaskLib attr_accessor :name def initialize(name=:ssh, &block) @name = name @ssh = Ssh.new @block = block define end def define task name do @block.call(@ssh) unless @block.nil? @ssh.execute end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.0.7 | lib/rake/sshtask.rb |