yle_tf 0.4.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fef8984348903ca788037c6d3562009f2499d513375aca7b8a6e93d14e9cf7cb
4
- data.tar.gz: adf1e1f5a27f03c420cde1d49496956a224a88a5fa434cbd0eb4dcf90fa00810
3
+ metadata.gz: 4f901e67d48b00b9c2a6692677eee372f69db444952618773bdc6edac24d5fd0
4
+ data.tar.gz: 8f98e4fa5c53bdc58cc758aa46be51ff7867747b5fe187cb54b1a2b83e025f80
5
5
  SHA512:
6
- metadata.gz: 834703a380e72cd8ccd7c8c3dd4f5013042f6fa39f230da61fa3859a860d02102415a48a1cd7065021439b5b506a13c6a184f39241aef7f4e719b2af9a42164e
7
- data.tar.gz: c432b0981046afd428eb2110dd45becfa810952c2d4e4d7263b117da82d5dd3da8c0a01713c8fff01ff5abe29c269dcfb99927d80a3941e8114dd6f573e9dc60
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('../../Gemfile', __FILE__))
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)
@@ -33,7 +33,7 @@ class YleTf
33
33
  end
34
34
 
35
35
  def self.core_plugins
36
- Dir.glob(File.expand_path('../../../yle_tf_plugins/**/plugin.rb', __FILE__))
36
+ Dir.glob(File.expand_path('../../yle_tf_plugins/**/plugin.rb', __dir__))
37
37
  end
38
38
 
39
39
  def self.bundler_plugins
@@ -1,3 +1,3 @@
1
1
  class YleTf
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
@@ -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
@@ -0,0 +1,16 @@
1
+ require 'yle_tf'
2
+
3
+ module YleTfPlugins
4
+ module Backends
5
+ module Swift
6
+ class Plugin < YleTf::Plugin
7
+ register
8
+
9
+ backend('swift') do
10
+ require_relative 'command'
11
+ Command
12
+ end
13
+ end
14
+ end
15
+ end
16
+ 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.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-03-12 00:00:00.000000000 Z
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