lib/docman/commands/ssh_target_checker.rb in docman-0.0.11 vs lib/docman/commands/ssh_target_checker.rb in docman-0.0.12
- old
+ new
@@ -4,10 +4,10 @@
class SSHTargetChecker < Docman::TargetChecker
register_checker :ssh
def execute
- filename = File.join(self['file_path'], @context['docroot_name'] + @context['environment'], self['filename'])
+ filename = File.join(self['file_path'], self['filename'])
Net::SFTP.start(self['ssh_host'], self['ssh_user']) do |sftp|
n = 0
begin
sleep 15
n+=1