Class: Rukawa::Builtins::GCSWaiter

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:, json_key: nil, if_modified_since: nil, if_unmodified_since: nil, **rest) ⇒ Object



147
148
149
150
151
152
153
154
155
156
# File 'lib/rukawa/builtins/waiter.rb', line 147

def handle_parameters(url:, json_key: nil, if_modified_since: nil, if_unmodified_since: nil, **rest)
  require 'google/apis/storage_v1'
  require 'googleauth'

  self.url = url
  self.json_key = json_key if json_key
  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