backup_demon 0.0.5 → 0.0.6

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- backup_demon (0.0.5)
4
+ backup_demon (0.0.6)
5
5
  thor (~> 0.18)
6
6
 
7
7
  GEM
@@ -10,11 +10,10 @@ module BackupDemon
10
10
 
11
11
  def run(interval = 5.0)
12
12
  interval = Float(interval)
13
- procline 'waiting for drive...'
14
13
 
15
14
  if @drive.exists? && @drive.different?
16
15
  procline 'Found Drive'
17
-
16
+
18
17
  Notifier.alert("Starting Backup") do
19
18
  "Starting Backup on #{Date.today}"
20
19
  end
@@ -24,7 +23,7 @@ module BackupDemon
24
23
  procline "Backing up #{source}"
25
24
  Sync.start(source, @drive.mount_point)
26
25
  end
27
- @drive.ummount
26
+ @drive.unmount
28
27
 
29
28
  Notifier.alert("Backup Complete") do
30
29
  "Backup Complete on #{Date.today}"
@@ -35,7 +34,7 @@ module BackupDemon
35
34
  end
36
35
  end
37
36
  end
38
-
37
+ procline 'waiting for drive...'
39
38
  Kernel.sleep(interval)
40
39
  end
41
40
 
@@ -46,7 +46,6 @@ module BackupDemon
46
46
 
47
47
  def mounted?
48
48
  Device.mounted.keys.include?(@device)
49
- true
50
49
  end
51
50
 
52
51
  def unmount
@@ -55,7 +54,6 @@ module BackupDemon
55
54
 
56
55
  def unmounted?
57
56
  !mounted?
58
- true
59
57
  end
60
58
  end
61
59
  end
@@ -2,7 +2,7 @@
2
2
  class Sync
3
3
  def self.start(source, destination)
4
4
  puts "Syncing #{source} to #{destination}"
5
- sleep 2
5
+ `rsync -avz #{source} #{destination}`
6
6
  end
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module BackupDemon
2
- Version = VERSION = '0.0.5'
2
+ Version = VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup_demon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  segments:
68
68
  - 0
69
- hash: -105373336490458876
69
+ hash: 1319951667579424968
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: -105373336490458876
78
+ hash: 1319951667579424968
79
79
  requirements: []
80
80
  rubyforge_project:
81
81
  rubygems_version: 1.8.24