Class: SiSU_Remote::Put
- Inherits:
-
Object
- Object
- SiSU_Remote::Put
- Defined in:
- lib/sisu/remote.rb
Instance Method Summary collapse
-
#initialize(opt) ⇒ Put
constructor
A new instance of Put.
- #rsync ⇒ Object
- #rsync_base ⇒ Object
- #rsync_base_sync ⇒ Object
- #rsync_harvest ⇒ Object
- #rsync_sitemaps ⇒ Object
- #scp ⇒ Object
- #scp_base ⇒ Object
- #scp_base_all ⇒ Object
Constructor Details
#initialize(opt) ⇒ Put
Returns a new instance of Put.
59 60 61 62 63 64 65 66 |
# File 'lib/sisu/remote.rb', line 59 def initialize(opt) @opt=opt @dir=SiSU_Env::InfoEnv.new(@opt.fns) @put=(@opt.fns =~/\.ssm\.sst$/) \ ? opt.fns.gsub(/(.+)?\.ssm\.sst$/,'\1.ssm') : opt.fns @remote=SiSU_Env::InfoRemote.new(opt) end |
Instance Method Details
#rsync ⇒ Object
67 68 69 70 71 72 73 74 |
# File 'lib/sisu/remote.rb', line 67 def rsync SiSU_Screen::Ansi.new( @opt.act[:color_state][:set], 'Remote placement ->', @put ).dark_grey_title_hi unless @opt.act[:quiet][:set]==:on @remote.rsync.document end |
#rsync_base ⇒ Object
75 76 77 78 79 80 81 82 |
# File 'lib/sisu/remote.rb', line 75 def rsync_base SiSU_Screen::Ansi.new( @opt.act[:color_state][:set], 'Remote placement ->', 'rsync' ).dark_grey_title_hi unless @opt.act[:quiet][:set]==:on @remote.rsync.site_base end |
#rsync_base_sync ⇒ Object
83 84 85 86 87 88 89 90 |
# File 'lib/sisu/remote.rb', line 83 def rsync_base_sync SiSU_Screen::Ansi.new( @opt.act[:color_state][:set], 'Remote placement ->', 'rsync and sync' ).dark_grey_title_hi unless @opt.act[:quiet][:set]==:on @remote.rsync.site_base_sync end |
#rsync_harvest ⇒ Object
99 100 101 102 103 104 105 106 |
# File 'lib/sisu/remote.rb', line 99 def rsync_harvest SiSU_Screen::Ansi.new( @opt.act[:color_state][:set], 'Remote placement metadata harvest ->', 'rsync_harvest' ).dark_grey_title_hi unless @opt.act[:quiet][:set]==:on @remote.rsync.site_harvest end |
#rsync_sitemaps ⇒ Object
91 92 93 94 95 96 97 98 |
# File 'lib/sisu/remote.rb', line 91 def rsync_sitemaps SiSU_Screen::Ansi.new( @opt.act[:color_state][:set], 'Remote placement sitemaps ->', 'rsync' ).dark_grey_title_hi unless @opt.act[:quiet][:set]==:on @remote.rsync_sitemaps end |
#scp ⇒ Object
107 108 109 110 111 112 113 114 |
# File 'lib/sisu/remote.rb', line 107 def scp SiSU_Screen::Ansi.new( @opt.act[:color_state][:set], 'Remote placement ->', @put ).dark_grey_title_hi unless @opt.act[:quiet][:set]==:on @remote.scp.document end |
#scp_base ⇒ Object
115 116 117 118 119 120 121 122 |
# File 'lib/sisu/remote.rb', line 115 def scp_base SiSU_Screen::Ansi.new( @opt.act[:color_state][:set], 'Remote placement of base site ->', 'excluding images' ).dark_grey_title_hi unless @opt.act[:quiet][:set]==:on @remote.scp.site_base end |
#scp_base_all ⇒ Object
123 124 125 126 127 128 129 130 |
# File 'lib/sisu/remote.rb', line 123 def scp_base_all SiSU_Screen::Ansi.new( @opt.act[:color_state][:set], 'Remote placement ->', 'complete' ).dark_grey_title_hi unless @opt.act[:quiet][:set]==:on @remote.scp.site_base_all end |