itgwiki_mirror 0.0.22.pre → 0.0.23.pre

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.
Files changed (2) hide show
  1. data/lib/itgwiki_mirror/deployer.rb +5 -1
  2. metadata +3 -3
@@ -31,9 +31,11 @@ module ITGwikiMirror
31
31
 
32
32
  def run
33
33
 
34
- # Watch the complete file. When it's touched, deploy again.
34
+ # Watch the "complete" file. When it's touched, deploy again.
35
+ #
35
36
  notifier = INotify::Notifier.new
36
37
  notifier.watch("#{@mirror}/complete", :modify) { deploy }
38
+ notifier.run
37
39
  end
38
40
 
39
41
 
@@ -73,6 +75,8 @@ module ITGwikiMirror
73
75
  #
74
76
  STDOUT.sync = true
75
77
 
78
+ puts 'Deploying...' if @verbose
79
+
76
80
  print 'Dropping database...' if @verbose
77
81
  drop_db
78
82
  if $?.success?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itgwiki_mirror
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22.pre
4
+ version: 0.0.23.pre
5
5
  prerelease: 7
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb-inotify
16
- requirement: &85854080 !ruby/object:Gem::Requirement
16
+ requirement: &76502750 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *85854080
24
+ version_requirements: *76502750
25
25
  description: ! "\n Use two scripts, itgwiki_mirror_backup and itgwiki_mirror_deploy,
26
26
  to\n maintain a read-only mirror of ITGwiki. itgwiki_mirror_backup runs\n periodically
27
27
  and automatically on the live instance of ITGwiki to create a\n backup and copy