yle_tf 0.4.0 → 1.0.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 +4 -4
- data/bin/tf +1 -1
- data/lib/yle_tf/plugin/loader.rb +1 -1
- data/lib/yle_tf/version.rb +1 -1
- data/lib/yle_tf_plugins/backends/swift/command.rb +18 -0
- data/lib/yle_tf_plugins/backends/swift/plugin.rb +16 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f901e67d48b00b9c2a6692677eee372f69db444952618773bdc6edac24d5fd0
|
4
|
+
data.tar.gz: 8f98e4fa5c53bdc58cc758aa46be51ff7867747b5fe187cb54b1a2b83e025f80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4aef3de1f089f711fffe0e538186516b3cd3a81c0b0f672e3302a66d2fb5c625dd22076a5f9ac7e6b228ad34ea90780f28f160ddc73709c3967717646bde56e6
|
7
|
+
data.tar.gz: 79508c7c0031a6515820efa3c415a131ff3e6cf34e840cd0f479436bf41a86cde065671e292a3e88a26132a47297d5a78ed6f5ccbdde5cd6a89ec92508b66f0b
|
data/bin/tf
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Catch Ctrl+C to avoid stack traces
|
4
4
|
Signal.trap('INT') { abort }
|
5
5
|
|
6
|
-
require 'bundler/setup' if File.exist?(File.expand_path('
|
6
|
+
require 'bundler/setup' if File.exist?(File.expand_path('../Gemfile', __dir__))
|
7
7
|
require 'yle_tf/cli'
|
8
8
|
|
9
9
|
cli = YleTf::CLI.new(ARGV)
|
data/lib/yle_tf/plugin/loader.rb
CHANGED
data/lib/yle_tf/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'yle_tf/backend_config'
|
2
|
+
|
3
|
+
module YleTfPlugins
|
4
|
+
module Backends
|
5
|
+
module Swift
|
6
|
+
class Command
|
7
|
+
def backend_config(config)
|
8
|
+
YleTf::BackendConfig.new(
|
9
|
+
'swift',
|
10
|
+
'region_name' => config.fetch('backend', 'region'),
|
11
|
+
'container' => config.fetch('backend', 'container'),
|
12
|
+
'archive_container' => config.fetch('backend', 'archive_container') { nil }
|
13
|
+
)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yle_tf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yleisradio
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -106,6 +106,8 @@ files:
|
|
106
106
|
- lib/yle_tf_plugins/backends/file/plugin.rb
|
107
107
|
- lib/yle_tf_plugins/backends/s3/command.rb
|
108
108
|
- lib/yle_tf_plugins/backends/s3/plugin.rb
|
109
|
+
- lib/yle_tf_plugins/backends/swift/command.rb
|
110
|
+
- lib/yle_tf_plugins/backends/swift/plugin.rb
|
109
111
|
- lib/yle_tf_plugins/commands/__default/command.rb
|
110
112
|
- lib/yle_tf_plugins/commands/__default/plugin.rb
|
111
113
|
- lib/yle_tf_plugins/commands/_config/command.rb
|