shipt 0.0.4.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/shipt.rb +6 -1
- data/shipt.gemspec +1 -1
- metadata +3 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/lib/shipt.rb
CHANGED
@@ -14,7 +14,12 @@ class Shipt
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def upload_file(path)
|
17
|
-
|
17
|
+
ext = File.extname(path)
|
18
|
+
key_name = if ext == '.log'
|
19
|
+
"#{@server_name}-#{Time.now.strftime("%Y%m%d-%H%M%S")}#{ext}"
|
20
|
+
else
|
21
|
+
"#{@server_name}-#{Time.now.strftime("%Y%m%d-%H%M%S")}.log#{ext}"
|
22
|
+
end
|
18
23
|
|
19
24
|
@logger.info "Uploading \"#{path}\" => \"#{key_name}\""
|
20
25
|
|
data/shipt.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shipt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
|
11
|
-
version: 0.0.4.3
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Justin Smestad
|