woro-s3 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f913887e7be5f55be50df0847fddd1d4247111e
4
- data.tar.gz: f335886bd09526a91cff2a8d915efdf7f60c3aaa
3
+ metadata.gz: 408f74fc9aa899178bf7ec795ada1b734af27018
4
+ data.tar.gz: 15833695ce4371b7c3c8eab4b5e420de6e7119e0
5
5
  SHA512:
6
- metadata.gz: b24eea8c99ae7038d9a6ca592b4b86c530acbd39602df48d142ee57378886f6562533efa39148210095ceb55d79dfb5238e3bbb75b15bb240856a6ff6929334f
7
- data.tar.gz: 5d64bc9fda30b966c1fe95fc79e6626b90e586d530d901358e0a714c46526b4a16d874a6c2ee2da2818e586bb6e5f7eb523df28e1cf56583cd5083e7cafb2d73
6
+ metadata.gz: 2d0e5fc8dd09569aafea3e76de8c31ba3c1b7c9dd1c918d22d9f896911245120f2c206a06db4492cf2166ddaf79a07edcbed32b39009f0b9f78dc286dea27a29
7
+ data.tar.gz: b52dbfb95c9eb335f546aa9e06e648a8a36d7f1789590afe08156fa5e68c2d591c40ea7dc7b8c3d89bcf4b78c4c768db4c55c9a407da2f6c856806e11e94ce56
data/README.md CHANGED
@@ -1,16 +1,29 @@
1
1
  # woro-s3
2
2
 
3
- Gist-Adapter for Woro remote task management
4
-
3
+ Gist-Adapter for [Woro remote task management](https://github.com/github/woro)
5
4
  Using Amazons's S3 to share them with colleagues.
6
5
 
7
- ## Woro adapters
8
-
9
6
  ## Usage
10
7
 
8
+ On initialization of a new project, you can choose and setup S3-configuration with:
9
+
10
+ ```shell
11
+ $ woro init
12
+ ```
13
+
14
+ If you already have a configuration, you can add these lines to you `lib/config/woro.yml`
15
+
16
+ ```yaml
17
+ adapters:
18
+ s3:
19
+ region: eu-west-1
20
+ bucket_name: <bucket name>
21
+ path: <path within bucket>
22
+ access_key_id: <access key id>
23
+ secret_access_key: <secret access key>
24
+ ```
11
25
 
12
- Once you are done writing the task and you want to execute it on the remote system.
13
- First you have to push them online, in this case to Gist.
26
+ Use `s3` as adapter to upload your task to.
14
27
 
15
28
  ```shell
16
29
  $ woro push s3:cleanup_users
@@ -1,5 +1,5 @@
1
1
  module Woro
2
2
  module S3
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ module Woro
16
16
  'secret_access_key' => ask('Secret access key: '),
17
17
  'region' => ask('Region: ') { |q| q.default = 'eu-west-1' },
18
18
  'bucket_name' => ask('Bucket name: '),
19
- 'path' => ask('Path within Bucket: ') { |q| q.default = '/' },
19
+ 'path' => ask('Path within Bucket: '),
20
20
  }
21
21
  end
22
22
 
@@ -91,7 +91,7 @@ module Woro
91
91
 
92
92
  def get_object(key)
93
93
  s3_client.get_object(bucket_name: bucket_name,
94
- key: key)[:data]
94
+ key: "#{path}#{key}")[:data]
95
95
  end
96
96
 
97
97
  def list_objects(prefix = nil)
data/woro-s3.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Woro::S3::VERSION
9
9
  spec.authors = ["Daniel Senff"]
10
10
  spec.email = ["mail@danielsenff.de"]
11
- spec.summary = %q{Adapter to Github's Gist for use in Woro remote task management}
12
- spec.description = %q{Adapter to Github's Gist for use in Woro remote task management}
11
+ spec.summary = %q{Adapter to Amazon S3 for use in Woro remote task management}
12
+ spec.description = %q{Adapter to Amazon S3 for use in Woro remote task management}
13
13
  spec.homepage = "http://github.com/Dahie/woro-s3"
14
14
  spec.license = "MIT"
15
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woro-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Senff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-01 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-v1
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.0'
69
- description: Adapter to Github's Gist for use in Woro remote task management
69
+ description: Adapter to Amazon S3 for use in Woro remote task management
70
70
  email:
71
71
  - mail@danielsenff.de
72
72
  executables: []
@@ -75,7 +75,6 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
77
  - Gemfile
78
- - Gemfile.lock
79
78
  - LICENSE
80
79
  - README.md
81
80
  - Rakefile
@@ -105,10 +104,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
104
  version: '0'
106
105
  requirements: []
107
106
  rubyforge_project:
108
- rubygems_version: 2.4.6
107
+ rubygems_version: 2.4.3
109
108
  signing_key:
110
109
  specification_version: 4
111
- summary: Adapter to Github's Gist for use in Woro remote task management
110
+ summary: Adapter to Amazon S3 for use in Woro remote task management
112
111
  test_files:
113
112
  - spec/lib/woro/adapters/s3_spec.rb
114
113
  - spec/spec_helper.rb
data/Gemfile.lock DELETED
@@ -1,53 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- woro-s3 (0.0.1)
5
- aws-sdk-v1
6
- woro
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- aws-sdk-v1 (1.64.0)
12
- json (~> 1.4)
13
- nokogiri (>= 1.4.4)
14
- commander (4.3.3)
15
- highline (~> 1.7.2)
16
- diff-lcs (1.2.5)
17
- fakefs (0.6.7)
18
- highline (1.7.2)
19
- json (1.8.3)
20
- mini_portile (0.6.2)
21
- nokogiri (1.6.6.2)
22
- mini_portile (~> 0.6.0)
23
- rake (10.4.2)
24
- rspec (3.3.0)
25
- rspec-core (~> 3.3.0)
26
- rspec-expectations (~> 3.3.0)
27
- rspec-mocks (~> 3.3.0)
28
- rspec-core (3.3.1)
29
- rspec-support (~> 3.3.0)
30
- rspec-expectations (3.3.0)
31
- diff-lcs (>= 1.2.0, < 2.0)
32
- rspec-support (~> 3.3.0)
33
- rspec-mocks (3.3.1)
34
- diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.3.0)
36
- rspec-nc (0.2.0)
37
- rspec (>= 2.9)
38
- terminal-notifier (>= 1.4)
39
- rspec-support (3.3.0)
40
- terminal-notifier (1.6.3)
41
- woro (0.2.2)
42
- commander
43
-
44
- PLATFORMS
45
- ruby
46
-
47
- DEPENDENCIES
48
- bundler (~> 1.7)
49
- fakefs
50
- rake (~> 10.0)
51
- rspec
52
- rspec-nc
53
- woro-s3!