Sha256: bb425c8034bb13c6e2c4a192961620e533f70a21ea4458fa89bf18520d55bf28

Contents?: true

Size: 792 Bytes

Versions: 11

Compression:

Stored size: 792 Bytes

Contents

#
# Run a RightScript
#
module Chimp
  class ExecRightScript < Executor
  
    def run
      options = {:ignore_lock => true}.merge(@inputs)
      
      if @timeout < 300
        Log.error "timeout was less than 5 minutes! resetting to 5 minutes"
        @timeout = 300
      end
    
      run_with_retry do
        audit_entry = server.run_executable(@exec, options)
        audit_entry.wait_for_state("completed", @timeout)
        @results = audit_entry.summary
      end
    end
    
    def describe_work
      return "ExecRightScript job_id=#{@job_id} script=\"#{@exec['right_script']['name']}\" server=\"#{@server['nickname']}\""
    end
    
    def info
      return @exec['right_script']['name']
    end
    
    def target
      return @server['nickname']
    end
    
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
right_chimp-1.1.3 lib/right_chimp/exec/ExecRightScript.rb
right_chimp-1.1.2 lib/right_chimp/exec/ExecRightScript.rb
right_chimp-1.1.1 lib/right_chimp/exec/ExecRightScript.rb
right_chimp-1.1.0 lib/right_chimp/exec/ExecRightScript.rb
right_chimp-1.0.9 lib/right_chimp/exec/ExecRightScript.rb
right_chimp-1.0.8 lib/right_chimp/exec/ExecRightScript.rb
right_chimp-1.0.7 lib/right_chimp/exec/ExecRightScript.rb
right_chimp-1.0.3 lib/right_chimp/exec/ExecRightScript.rb
right_chimp-1.0.2 lib/right_chimp/exec/ExecRightScript.rb
right_chimp-1.0.1 lib/right_chimp/exec/ExecRightScript.rb
right_chimp-1.0 lib/right_chimp/exec/ExecRightScript.rb