backgem 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/backgem +3 -1
- metadata +1 -1
data/bin/backgem
CHANGED
@@ -40,6 +40,8 @@ class Backgem
|
|
40
40
|
puts "Undefined command #{name}. Availble commands: backup and restore"
|
41
41
|
end
|
42
42
|
|
43
|
+
# the code beyond is 'borrowed' from http://github.com/defunkt/gist
|
44
|
+
|
43
45
|
def write_to_gist(content)
|
44
46
|
url = URI.parse('http://gist.github.com/gists')
|
45
47
|
gist_name = "backgem-#{Time.new.strftime("%Y-%m-%d")}"
|
@@ -69,5 +71,5 @@ if ARGV[0]
|
|
69
71
|
action = Backgem.new
|
70
72
|
action.send(ARGV[0].to_sym)
|
71
73
|
else
|
72
|
-
puts "Usage: backgem backup
|
74
|
+
puts "Usage: backgem backup/restore/make_gist"
|
73
75
|
end
|