-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
35 lines (28 loc) · 806 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env ruby
$: << File.expand_path(File.dirname(__FILE__) + "/../lib")
# Lib Files
require 'jekyll-ftp/version'
# Gems
require "rubygems"
require "rake"
require "colorize"
# Tasks
desc "Get version"
task :version do
puts "Jekyll-FTP".blue + " v#{Jekyll_FTP::VERSION}".yellow
end
desc "Default task."
task :default do
`rake version`
puts "Gem seems to be in tip top shape!".green
puts "Run: ".yellow + "`jekyll-ftp --help` to list all commands."
end
desc "Build gem."
task :build do
puts "Starting gem build...".yellow
puts " Building...".yellow
`gem build jekyll-ftp.gemspec`
version = Jekyll_FTP::VERSION
puts "Jekyll-FTP successfully built! ".green + "Gem ".blue + "v" + version
puts puts "Gems in this directory: ".yellow + `ls *.gem`
end