db_backup_tool 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,13 +18,9 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- Please set DATABASE_URL as an env variable
22
-
23
- $ export DATABASE_URL=postgres://....
24
-
25
21
  Dump and export to a zip file
26
22
 
27
- $ db_backup_tool dump
23
+ $ db_backup_tool -d postgres://.... dump
28
24
 
29
25
  Load from a zip file
30
26
 
@@ -40,7 +40,9 @@ end.parse! argv
40
40
  # ensure configuration
41
41
  if ENV['DATABASE_URL']
42
42
  options[:config] ||= config_from_url(ENV['DATABASE_URL'])
43
- else
43
+ end
44
+
45
+ unless options[:config]
44
46
  raise RuntimeError, "You must have configured database correctly"
45
47
  end
46
48
 
@@ -1,3 +1,3 @@
1
1
  module DbBackupTool
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_backup_tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-07 00:00:00.000000000 Z
12
+ date: 2012-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport