Sha256: 8b2ade6ddae8dc895dd6dc9ddb3c7ac356735fd19402eb4c0f1bef9186eb8d9a

Contents?: true

Size: 932 Bytes

Versions: 33

Compression:

Stored size: 932 Bytes

Contents

#
# Run a RightScript on an array
#
module Chimp
  class ExecArray < Executor
    def run
      run_with_retry do
        audit_entry = []
        options = @inputs

        if @timeout < 300
          Log.error "timeout was less than 5 minutes! resetting to 5 minutes"
          @timeout = 300
        end

        audit_entry = @array.run_script_on_instances(@exec, @server['href'], options)

        if audit_entry
          audit_entry.each do |a|
            a.wait_for_completed("no audit link available",@timeout)
          end
        else
          Log.warn "No audit entries returned for job_id=#{@job_id}"
        end
      end
    end

    def describe_work
      return "ExecArray 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

33 entries across 33 versions & 1 rubygems

Version Path
right_chimp-2.1.28 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.27 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.26 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.25.2 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.25 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.24 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.22.2 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.22.1 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.22 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.21 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.19.1 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.19 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.18 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.17 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.15 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.14 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.13 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.12 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.10 lib/right_chimp/exec/ExecArray.rb
right_chimp-2.1.8 lib/right_chimp/exec/ExecArray.rb