Module: Assets
- Defined in:
- lib/synchronizer/assets.rb
Instance Method Summary collapse
Instance Method Details
#copy_assets_cmd ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/synchronizer/assets.rb', line 14 def copy_assets_cmd if dest = fetch(:sync_assets_to, nil) scp_file(fetch(:assets_archive_file), dest) else raise "missing variable sync_assets_to" end end |
#copy_assets_to_local ⇒ Object
10 11 12 |
# File 'lib/synchronizer/assets.rb', line 10 def copy_assets_to_local download! "#{fetch(:assets_archive_file)}", "#{fetch(:assets_archive_file).split('/')[-1]}" end |
#pack_assets ⇒ Object
3 4 5 6 7 |
# File 'lib/synchronizer/assets.rb', line 3 def pack_assets on roles :web do execute "cd #{shared_path}; #{pack_assets_cmd}" end end |