tumugi-plugin-google_cloud_storage 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -2
- data/README.md +24 -16
- data/tumugi-plugin-google_cloud_storage.gemspec +3 -2
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a126d73a190b2fd437f6e51ed80e550570482d7
|
4
|
+
data.tar.gz: 1f98071acb47b7914c3f6c5da1b6bdeb608b8081
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f48cb6ff5bb336aa1cf9cfdc14e9b9023818b9c0a99eb65c380d6fa3aa85c817aec9f21706794e64c350e66ff44da66f352929131f09bd9a030bb332e5a99e0
|
7
|
+
data.tar.gz: 9419482496c84fa9806776ae106febbd816670b27624de54141848f2169014d4e2a10c03cd7c82998574d9c2451c143d470749aaf006835cb7d9488aa2728e82
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [
|
4
|
-
[Full Changelog](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/compare/v0.
|
3
|
+
## [v0.3.0](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/tree/v0.3.0) (2016-07-18)
|
4
|
+
[Full Changelog](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/compare/v0.2.0...v0.3.0)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Update README [\#19](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/pull/19) ([hakobera](https://github.com/hakobera))
|
9
|
+
- Update tumugi to 0.6 [\#18](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/pull/18) ([hakobera](https://github.com/hakobera))
|
10
|
+
|
11
|
+
## [v0.2.0](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/tree/v0.2.0) (2016-06-06)
|
12
|
+
[Full Changelog](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/compare/v0.1.0...v0.2.0)
|
5
13
|
|
6
14
|
**Implemented enhancements:**
|
7
15
|
|
@@ -10,6 +18,7 @@
|
|
10
18
|
|
11
19
|
**Merged pull requests:**
|
12
20
|
|
21
|
+
- Update changelog [\#17](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/pull/17) ([hakobera](https://github.com/hakobera))
|
13
22
|
- Remove unneeded log [\#16](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/pull/16) ([hakobera](https://github.com/hakobera))
|
14
23
|
- Prepare release for 0.2.0 [\#15](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/pull/15) ([hakobera](https://github.com/hakobera))
|
15
24
|
- Change test directory [\#13](https://github.com/tumugi/tumugi-plugin-google_cloud_storage/pull/13) ([hakobera](https://github.com/hakobera))
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/tumugi/tumugi-plugin-google_cloud_storage.svg?branch=master)](https://travis-ci.org/tumugi/tumugi-plugin-google_cloud_storage) [![Code Climate](https://codeclimate.com/github/tumugi/tumugi-plugin-google_cloud_storage/badges/gpa.svg)](https://codeclimate.com/github/tumugi/tumugi-plugin-google_cloud_storage) [![Coverage Status](https://coveralls.io/repos/github/tumugi/tumugi-plugin-google_cloud_storage/badge.svg?branch=master)](https://coveralls.io/github/tumugi/tumugi-plugin-google_cloud_storage?branch=master) [![Gem Version](https://badge.fury.io/rb/tumugi-plugin-google_cloud_storage.svg)](https://badge.fury.io/rb/tumugi-plugin-google_cloud_storage)
|
2
2
|
|
3
|
-
# tumugi
|
3
|
+
# Google Cloud Storage plugin for [tumugi]((https://github.com/tumugi/tumugi)
|
4
4
|
|
5
|
-
[tumugi](https://github.com/tumugi/tumugi)
|
5
|
+
tumugi-plugin-google_cloud_storage is a plugin for integrate [Google Cloud Storage](https://cloud.google.com/storage/) and [tumugi](https://github.com/tumugi/tumugi).
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -12,34 +12,36 @@ Add this line to your application's Gemfile:
|
|
12
12
|
gem 'tumugi-plugin-google_cloud_storage'
|
13
13
|
```
|
14
14
|
|
15
|
-
And then execute
|
15
|
+
And then execute `bundle install`
|
16
16
|
|
17
|
-
|
18
|
-
$ bundle
|
19
|
-
```
|
17
|
+
## Target
|
20
18
|
|
21
|
-
|
19
|
+
### Tumugi::Plugin::GoogleCloudStorageFileTarget
|
22
20
|
|
23
|
-
|
24
|
-
$ gem install tumugi-plugin-google_cloud_storage
|
25
|
-
```
|
21
|
+
This target represent file or directory of Googl Cloud Storage.
|
26
22
|
|
27
|
-
|
23
|
+
#### Paramters
|
28
24
|
|
29
|
-
|
25
|
+
| name | type | required? | default | description |
|
26
|
+
|--------|--------|-----------|---------|------------------------------------------------------------------------------------------|
|
27
|
+
| bucket | string | required | | [bucket](https://cloud.google.com/storage/docs/json_api/v1/buckets) name of GCS |
|
28
|
+
| key | string | required | | key (= [object](https://cloud.google.com/storage/docs/json_api/v1/objects) name) of GCS. |
|
30
29
|
|
31
|
-
|
32
|
-
This target has 2 parameters, `bucket` and `key`.
|
30
|
+
#### Examples
|
33
31
|
|
34
|
-
|
32
|
+
Create a file which content is "done" in Google Cloud Storage.
|
35
33
|
|
36
34
|
```rb
|
37
35
|
task :task1 do
|
38
36
|
param :bucket, type: :string, auto_bind: true, required: true
|
39
37
|
param :day, type: :time, auto_bind: true, required: true
|
38
|
+
|
40
39
|
output do
|
41
|
-
target(:google_cloud_storage_file,
|
40
|
+
target(:google_cloud_storage_file,
|
41
|
+
bucket: bucket,
|
42
|
+
key: "test_#{day.strftime('%Y%m%d')}.txt")
|
42
43
|
end
|
44
|
+
|
43
45
|
run do
|
44
46
|
log 'task1#run'
|
45
47
|
output.open('w') {|f| f.puts('done') }
|
@@ -47,6 +49,12 @@ task :task1 do
|
|
47
49
|
end
|
48
50
|
```
|
49
51
|
|
52
|
+
Execute this file:
|
53
|
+
|
54
|
+
```sh
|
55
|
+
$ bundle exec tumugi run -f workflow.rb -p bucket:BUCKET_NAME day:2016-07-01
|
56
|
+
```
|
57
|
+
|
50
58
|
### Config Section
|
51
59
|
|
52
60
|
tumugi-plugin-google_cloud_storage provide config section named "google_cloud_storage" which can specified Google Cloud Storage autenticaion info.
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "tumugi-plugin-google_cloud_storage"
|
7
|
-
spec.version = "0.
|
7
|
+
spec.version = "0.3.0"
|
8
8
|
spec.authors = ["Kazuyuki Honda"]
|
9
9
|
spec.email = ["hakobera@gmail.com"]
|
10
10
|
|
@@ -19,8 +19,9 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.required_ruby_version = '>= 2.1'
|
21
21
|
|
22
|
-
spec.add_runtime_dependency "tumugi", ">= 0.
|
22
|
+
spec.add_runtime_dependency "tumugi", ">= 0.6.1"
|
23
23
|
spec.add_runtime_dependency "google-api-client", "~> 0.9.3"
|
24
|
+
spec.add_runtime_dependency "json", "~> 1.8.3" # json 2.0 does not work with JRuby + MultiJson
|
24
25
|
|
25
26
|
spec.add_development_dependency "bundler", "~> 1.11"
|
26
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tumugi-plugin-google_cloud_storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuyuki Honda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tumugi
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.6.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.6.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-api-client
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.9.3
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.8.3
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.8.3
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|