Class: Sleet::JobFetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/sleet/job_fetcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(config:, output_filename:, job_name:, repo:) ⇒ JobFetcher

Returns a new instance of JobFetcher.



5
6
7
8
9
10
11
12
# File 'lib/sleet/job_fetcher.rb', line 5

def initialize(config:, output_filename:, job_name:, repo:)
  @circle_ci_token = config.circle_ci_token
  @source_dir = config.source_dir
  @input_filename = config.input_file
  @output_filename = output_filename
  @job_name = job_name
  @repo = repo
end

Instance Method Details

#do!Object



14
15
16
17
# File 'lib/sleet/job_fetcher.rb', line 14

def do!
  validate!
  create_output_file!
end