radikocopy 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/radikocopy/version.rb +1 -1
- data/lib/radikocopy.rb +3 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab31d9abc45b279b466628b595e33f9a00923d6665adb207ae8549922bd0e06f
|
4
|
+
data.tar.gz: bb8a493b860d926c988f238a617f126cd4b48005b6c14ba7cd8d4b0aa5d75eac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72570d400326da2cdcc8e6feedbae6ce186079827238dbc582900a9c6f93b84fece355a3268d25f117999b59b63c0f042ba06eaefd9c3062037618bba41809e6
|
7
|
+
data.tar.gz: c32388b6ab86bf4c9373f0909f00f78d117bd0c9e9439f19ef8ce4f3aa45aaaf90e545011507da7cd8d2cc227e03bddfe9fb68d157418e8932d6a07c55eb6453
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.3
|
data/lib/radikocopy/version.rb
CHANGED
data/lib/radikocopy.rb
CHANGED
@@ -115,12 +115,14 @@ module Radikocopy
|
|
115
115
|
def copy_file(filename)
|
116
116
|
basename = File.basename(filename)
|
117
117
|
local_file = File.join(@config.local_dir, basename)
|
118
|
+
# puts "##### local_file #{local_file} #####"
|
118
119
|
if FileTest.file?(local_file)
|
119
120
|
# TODO -v option
|
120
121
|
# puts "exists local_file #{local_file}"
|
121
122
|
return false
|
122
123
|
end
|
123
|
-
|
124
|
+
# puts "not exists"
|
125
|
+
copy_command = "scp -p #{@config.remote_host}:\"'#{filename}'\" \"#{@config.local_dir}\""
|
124
126
|
runcmd_and_exit(copy_command)
|
125
127
|
true
|
126
128
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radikocopy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- src
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -97,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
|
101
|
-
rubygems_version: 2.7.6
|
100
|
+
rubygems_version: 3.0.3
|
102
101
|
signing_key:
|
103
102
|
specification_version: 4
|
104
103
|
summary: Radiko copy tool
|