Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mina-ftp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mina-ftp

  • 0.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

FTP support for Mina

You can use mina now to deploy static websites to FTP servers.

Installation

Add this line to your application's Gemfile:

gem 'mina-ftp'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mina-ftp

Usage

Use mina to generate the config file:

$ bundle exec mina init

Load the FTP tasks:

require 'mina/ftp'

Add some settings to the config/deploy.rb or to Minafile file.

set :ftp_path, 'public_www'
set :ftp_host, 'ftp.domain.com'
set :ftp_username, 'user@domain.com'
set :ftp_password, 'secret'
set :ftp_from_path, 'public'
set :ftp_options, {:passive => false}

Update deploy task to invoke ftp:deploy task:

task :deploy do
  invoke :'ftp:deploy'
end

Deploy it!

$ bundle exec mina deploy

Use --verbose flag if you want to see FTP client calls.

To clear the remote path, use the ftp:empty task:

$ bundle exec mina ftp:empty

Thats it.

Todo

Write some tests.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Thanks and credits

This gem uses ftp_sync gem.

Huge thanks to mina developers for the awesome tool.

FAQs

Package last updated on 02 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc