lu-tze 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lu_tze.rb +4 -7
- metadata +4 -4
data/lib/lu_tze.rb
CHANGED
@@ -1,14 +1,11 @@
|
|
1
1
|
require 'rest_client'
|
2
2
|
|
3
3
|
class LuTze
|
4
|
-
|
5
|
-
|
6
|
-
def self.gather_and_send(app_name)
|
7
|
-
LuTze.new(app_name).upload
|
4
|
+
def self.gather_and_send
|
5
|
+
LuTze.new.upload
|
8
6
|
end
|
9
7
|
|
10
|
-
def initialize
|
11
|
-
@app_name = app_name
|
8
|
+
def initialize
|
12
9
|
save && compress
|
13
10
|
end
|
14
11
|
|
@@ -23,7 +20,7 @@ class LuTze
|
|
23
20
|
def upload
|
24
21
|
file = File.new(compressed_file_name, 'r')
|
25
22
|
RestClient.post 'http://historian.heroku.com/api/data_backups',
|
26
|
-
:
|
23
|
+
:site_key => ENV['historian_key'],
|
27
24
|
:backup => file
|
28
25
|
end
|
29
26
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lu-tze
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
- 1
|
9
8
|
- 2
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pat Allan
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-07-20 00:00:00 +10:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|