Skip to content

Commit

Permalink
Support custom filesystem for GoogleCloudStorageFileTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
hakobera committed Jun 1, 2016
1 parent 155aa95 commit f60542a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tumugi/plugin/target/google_cloud_storage_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ class GoogleCloudStorageFileTarget < Tumugi::Plugin::FileSystemTarget

attr_reader :bucket, :key, :path

def initialize(bucket:, key:)
def initialize(bucket:, key:, fs: nil)
@bucket = bucket
@key = key
@path = "gs://#{File.join(bucket, key)}"
@fs = fs unless fs.nil?
log "bucket='#{bucket}, key='#{key}'"
end

Expand Down

0 comments on commit f60542a

Please sign in to comment.