Class: Rukawa::Builtins::S3Waiter

Inherits:
Waiter show all
Defined in:
lib/rukawa/builtins/waiter.rb

Instance Attribute Summary

Attributes inherited from Job

#finished_at, #in_comings, #out_goings, #started_at, #state, #variables

Attributes inherited from AbstractJob

#parent_job_net

Class Method Summary collapse

Methods inherited from Waiter

#run

Methods inherited from Base

[]

Methods inherited from Job

after_fail, after_run, around_run, before_run, #dataflow, #initialize, #jobs_as_from, #leaf?, #resource_count, #root?, #run, set_dependency_type, set_resource_count, set_retryable, #set_state, #to_dot_def, wrapper_for, wrappers

Methods inherited from AbstractJob

add_skip_rule, description, #elapsed_time_from, #formatted_elapsed_time_from, #inspect, #name, set_description, #skip?

Constructor Details

This class inherits a constructor from Rukawa::Job

Class Method Details

.handle_parameters(url:, aws_access_key_id: nil, aws_secret_access_key: nil, region: nil, if_modified_since: nil, if_unmodified_since: nil, **rest) ⇒ Object



98
99
100
101
102
103
104
105
106
107
108
# File 'lib/rukawa/builtins/waiter.rb', line 98

def handle_parameters(url:, aws_access_key_id: nil, aws_secret_access_key: nil, region: nil, if_modified_since: nil, if_unmodified_since: nil, **rest)
  require 'aws-sdk'

  self.url = url
  self.aws_access_key_id = aws_access_key_id if aws_access_key_id
  self.aws_secret_access_key = aws_secret_access_key if aws_secret_access_key
  self.region = region if region
  self.if_modified_since = if_modified_since if if_modified_since
  self.if_unmodified_since = if_unmodified_since if if_unmodified_since
  super(**rest)
end