Benign gem 589,667 installs Download

dpl-gcs 1.9.6

“deploy tool abstraction for clients”

Ruby changes the working directoryS3 put_object operation
SHA-25666ec8e3d03c912f6355ed8c2ece8a930d63514454553c00ee86c1ef89fccc1b7
MaleculeH₂(CmF)

Evidence

Ruby changes the working directory gcs.rb · lines 1–48
1require 'kconv'
2require 'gstore'
3require 'mime-types'
4
5module DPL
⋯7 lines
13 @client ||= GStore::Client.new(
14 :access_key => option(:access_key_id),
15 :secret_key => option(:secret_access_key)
16 )
17 end
⋯10 lines
28 glob_args = ["**/*"]
29 glob_args << File::FNM_DOTMATCH if options[:dot_match]
30 Dir.chdir(options.fetch(:local_dir, Dir.pwd)) do
31 Dir.glob(*glob_args) do |filename|
32 next if File.directory?(filename)
⋯6 lines
39 option(:bucket),
40 upload_path(filename),
41 { :data => File.read(filename), :headers => opts }
42 )
43 end
⋯5 lines
imports dpl/provider/gcs gcs_spec.rb · lines 1–7
1require 'spec_helper'
2require 'dpl/provider/gcs'
3
4describe DPL::Provider::GCS do
5
6 subject :provider do
7 described_class.new(DummyContext.new, :access_key_id => 'qwertyuiopasdfghjklz', :secret_access_key => 'qwertyuiopasdfghjklzqwer …
S3 put_object operation gcs_spec.rb · lines 51–57
51:32… o
52 expect(Dir).to receive(:glob).and_yield(__FILE__)
53 expect_any_instance_of(GStore::Client).to receive(:put_object).with(
54 anything(),
55 anything(),
56 hash_including(:headers => {:"Content-Type" => 'application/x-ruby'})
57 …
AES or generic key field name gcs_spec.rb · lines 108–115
108:45… ).with(
109 :access_key => 'qwertyuiopasdfghjklz',
110 :secret_key => 'qwertyuiopasdfghjklzqwertyuiopasdfghjklz'
111 )
112 provider.client
113 end
114 end
115end

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.