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.
61 62 63 64 65 66 67 68 |
# File 'lib/sisu/remote.rb', line 61 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
69 70 71 72 73 74 75 76 |
# File 'lib/sisu/remote.rb', line 69 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
77 78 79 80 81 82 83 84 |
# File 'lib/sisu/remote.rb', line 77 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
85 86 87 88 89 90 91 92 |
# File 'lib/sisu/remote.rb', line 85 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
101 102 103 104 105 106 107 108 |
# File 'lib/sisu/remote.rb', line 101 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
93 94 95 96 97 98 99 100 |
# File 'lib/sisu/remote.rb', line 93 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
109 110 111 112 113 114 115 116 |
# File 'lib/sisu/remote.rb', line 109 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
117 118 119 120 121 122 123 124 |
# File 'lib/sisu/remote.rb', line 117 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
125 126 127 128 129 130 131 132 |
# File 'lib/sisu/remote.rb', line 125 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 |