diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-09-24 07:39:11 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-09-24 07:39:11 -0400 |
commit | 5048519fbbe92da19a395e79561cb2bcd6542e7d (patch) | |
tree | daf780be791187f6f8fa89b11cd1f5e311bc7443 /lib/sisu/v3/remote.rb | |
parent | v2 v3: param, matching of date, years 1400 - 21\d\d (diff) |
v3: cosmetic, minor
Diffstat (limited to 'lib/sisu/v3/remote.rb')
-rw-r--r-- | lib/sisu/v3/remote.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3/remote.rb b/lib/sisu/v3/remote.rb index 1e974f9c..a3b9a62e 100644 --- a/lib/sisu/v3/remote.rb +++ b/lib/sisu/v3/remote.rb @@ -64,9 +64,9 @@ module SiSU_Remote def initialize(opt) @opt=opt @dir=SiSU_Env::Info_env.new(@opt.fns) - @put=unless @opt.fns =~/\.ssm\.sst$/; @opt.fns - else @opt.fns.gsub(/(.+)?\.ssm\.sst$/,'\1.ssm') - end + @put=(@opt.fns =~/\.ssm\.sst$/) \ + ? @opt.fns.gsub(/(.+)?\.ssm\.sst$/,'\1.ssm') + : @opt.fns @remote=SiSU_Env::Info_remote.new(@opt) end def rsync |