picasaweb-backup 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/picasaweb-backup +0 -5
- data/lib/picasaweb-backup.rb +10 -0
- data/lib/version.rb +1 -1
- metadata +1 -1
data/bin/picasaweb-backup
CHANGED
@@ -34,11 +34,6 @@ cli = Picasaweb::CLI.new opts
|
|
34
34
|
|
35
35
|
begin
|
36
36
|
|
37
|
-
if opts[:dir]
|
38
|
-
cli.print "Changing working directory to #{opts[:dir]}"
|
39
|
-
Dir.chdir opts[:dir]
|
40
|
-
end
|
41
|
-
|
42
37
|
account = File.open("account.yml", 'r') { |f| YAML.load f }
|
43
38
|
verify_account account
|
44
39
|
client = picasa_client account["username"], account["password"]
|
data/lib/picasaweb-backup.rb
CHANGED
@@ -17,10 +17,20 @@ module Picasaweb
|
|
17
17
|
|
18
18
|
def initialize opts
|
19
19
|
@opts = opts
|
20
|
+
|
21
|
+
if opts[:dir]
|
22
|
+
Dir.chdir opts[:dir]
|
23
|
+
end
|
24
|
+
|
20
25
|
if @opts[:log]
|
21
26
|
@logger = Logger.new "picasaweb-backup.log", shift_age = "monthly"
|
22
27
|
@logger.datetime_format = "%Y-%m-%d %H:%M"
|
23
28
|
end
|
29
|
+
|
30
|
+
if opts[:dir]
|
31
|
+
self.print "Changing working directory to #{opts[:dir]}"
|
32
|
+
end
|
33
|
+
|
24
34
|
end
|
25
35
|
|
26
36
|
def print msg
|
data/lib/version.rb
CHANGED