Module: Helper
- Defined in:
- lib/synchronizer/helper.rb
Instance Method Summary collapse
Instance Method Details
#_cset(name, *args, &block) ⇒ Object
19 20 21 22 23 |
# File 'lib/synchronizer/helper.rb', line 19 def _cset(name, *args, &block) unless exists?(name) set(name, *args, &block) end end |
#destination ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/synchronizer/helper.rb', line 3 def destination puts "deprecated... will vanish soon..." _stage = fetch(:stage, nil).to_s dest = fetch(:sync_to, nil) if dest dest else ask(:sync_to, stages.delete_if { |x| x == _stage }.join('|') ) dest = fetch(:sync_to, nil) end end |
#scp_file(src, dest) ⇒ Object
15 16 17 |
# File 'lib/synchronizer/helper.rb', line 15 def scp_file(src, dest) capture "scp #{src} #{dest}" end |