• Jump To … +
    basics.rb s3_backup.rb s3_basics.rb s3_sandbox.rb ssh_basics.rb ssh_deployment.rb ssh_sandbox.rb
  • ssh_basics.rb

  • ¶

    Example of [Virtual File System][vfs] working with SFTP.

    This is exactly the same [basic example][basics] but this time we using SFTP as storage instead of local file system.

    Adding examples folder to load paths.

    $LOAD_PATH << File.expand_path("#{__FILE__}/../..")
  • ¶

    Connecting to SFTP and preparing sandbox. You may take a look at the [docs/ssh_sandbox.rb][ssh_sandbox] to see the actual code.

    require 'docs/ssh_sandbox'
  • ¶

    Now we just executig [basic example][basics] but with the $storage set to SFTP.

    require 'docs/basics'
  • ¶