Skip to content

Commit

Permalink
Temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
hakobera committed Jun 5, 2016
1 parent 0210a07 commit 0aac2ff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in tumugi-plugin-bigquery.gemspec
gemspec

# Temporary
gem "tumugi-plugin-google_cloud_storage", git: "https://github.com/tumugi/tumugi-plugin-google_cloud_storage", branch: "master"
3 changes: 2 additions & 1 deletion lib/tumugi/plugin/task/bigquery_export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class BigqueryExportTask < Tumugi::Task
param :wait, type: :integer, default: 120

def output
Tumugi::Plugin::GoogleCloudStorageFileTarget.new(bucket: bucket, key: key)
fs = Tumugi::Plugin::GoogleCloudStorage::FileSystem.new(Tumugi.config.section('bigquery'))
Tumugi::Plugin::GoogleCloudStorageFileTarget.new(bucket: bucket, key: key, fs: fs)
end

def run
Expand Down
6 changes: 0 additions & 6 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,4 @@ def credential
section.client_email = credential[:client_email]
section.private_key = credential[:private_key]
end

config.section('google_cloud_storage') do |section|
section.project_id = credential[:project_id]
section.client_email = credential[:client_email]
section.private_key = credential[:private_key]
end
end
2 changes: 1 addition & 1 deletion tumugi-plugin-bigquery.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency "tumugi", "~> 0.5.1"
spec.add_runtime_dependency "kura", "~> 0.2.17"
spec.add_runtime_dependency "tumugi-plugin-google_cloud_storage", "~> 0.1.0"
#spec.add_runtime_dependency "tumugi-plugin-google_cloud_storage", "~> 0.1.0"

spec.add_development_dependency 'bundler', '~> 1.11'
spec.add_development_dependency 'rake', '~> 10.0'
Expand Down

0 comments on commit 0aac2ff

Please sign in to comment.