aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/harvest.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-10-23 23:40:45 -0400
committerRalph Amissah <ralph@amissah.com>2013-10-23 23:40:45 -0400
commitedd89902036bde18c91031470e19c871a182cf6d (patch)
tree1269e7b1660aa64896fc21768002e837233c2c24 /lib/sisu/v5/harvest.rb
parentv4 v5: version & changelog (diff)
v5: options & downstream, more use of opt.act instead of opt.cmd
* opt.act.*.set==:on instead of opt.cmd =~/\S/
Diffstat (limited to 'lib/sisu/v5/harvest.rb')
-rw-r--r--lib/sisu/v5/harvest.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v5/harvest.rb b/lib/sisu/v5/harvest.rb
index ffcb6aa3..8ff7cc31 100644
--- a/lib/sisu/v5/harvest.rb
+++ b/lib/sisu/v5/harvest.rb
@@ -100,10 +100,10 @@ WOK
def cases(opt,env)
case opt.mod.inspect
when/--harvest/i
- css(opt) if opt.cmd.inspect =~/M/
+ css(opt) if @opt.act[:maintenance][:set]==:on
SiSU_HarvestAuthors::Songsheet.new(opt,env).songsheet
SiSU_HarvestTopics::Songsheet.new(opt,env).songsheet
- if opt.cmd.inspect =~/R/
+ if @opt.act[:rsync][:set]==:on
require_relative 'remote' # remote.rb
SiSU_Remote::Put.new(opt).rsync_harvest
end