Sha256: 3193d93bffdc81f5b6ed9de27da8661d25c6545415324c3f89723e7fa52436a0

Contents?: true

Size: 843 Bytes

Versions: 2

Compression:

Stored size: 843 Bytes

Contents

#!/usr/bin/env ruby

$: << File.expand_path(File.dirname(__FILE__) + "/../lib")

require 'rubygems'
require 'commander/import'
require 'jekyll-ftp.rb'

program :version, Jekyll_FTP::VERSION
program :description, 'Jekyll deployment made easy.'
 
command :deploy do |c|
    c.syntax = 'jekyll-ftp deploy'
    c.summary = 'Deploy your site via FTP with the preconfigured server settings.'
    c.description = 'Deploy your site via FTP.'
    c.action do |args, options|
        Jekyll_FTP::Command.deploy
    end
end

command :clean do |c|
    c.syntax = 'jekyll-ftp clean'
    c.summary = 'Just remove all files in the given remote directory.'
    c.description = c.summary
    c.example 'Remove the files in the preconfigured directory.', 'jekyll-ftp clean'
    c.action do |args, options|
        Jekyll_FTP::Command.deploy(false)
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-ftp-0.1.1 bin/jekyll-ftp
jekyll-ftp-0.1.0 bin/jekyll-ftp