hyde-ftp 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/hyde-ftp.gemspec +1 -1
- data/lib/hyde.rb +11 -10
- metadata +1 -1
data/hyde-ftp.gemspec
CHANGED
data/lib/hyde.rb
CHANGED
|
@@ -50,22 +50,23 @@ class Jekyll
|
|
|
50
50
|
ftp.quit
|
|
51
51
|
|
|
52
52
|
rescue
|
|
53
|
-
puts "
|
|
54
|
-
puts "Usage: hyde deploy _config.yml"
|
|
53
|
+
puts " Incorrectly configured or nonexistant config file."
|
|
54
|
+
puts " Usage: hyde deploy _config.yml"
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
def help()
|
|
58
58
|
command2 = ARGV[1]
|
|
59
59
|
case command2
|
|
60
60
|
when "deploy"
|
|
61
|
-
puts "Build Jekyll site and deploy via FTP."
|
|
62
|
-
puts "Usage: hyde deploy _config.yml"
|
|
61
|
+
puts " Build Jekyll site and deploy via FTP."
|
|
62
|
+
puts " Usage: hyde deploy _config.yml"
|
|
63
63
|
when "new_site"
|
|
64
|
-
puts "Create a new Jekyll site."
|
|
65
|
-
puts "Usage: hyde new site_name"
|
|
64
|
+
puts " Create a new Jekyll site."
|
|
65
|
+
puts " Usage: hyde new site_name"
|
|
66
66
|
else
|
|
67
|
-
puts "Commands:"
|
|
68
|
-
puts " deploy
|
|
67
|
+
puts " Commands:"
|
|
68
|
+
puts " deploy _config.yml"
|
|
69
|
+
puts " new_site siteName"
|
|
69
70
|
end
|
|
70
71
|
end
|
|
71
72
|
end
|
|
@@ -75,12 +76,12 @@ case command1
|
|
|
75
76
|
when "deploy"
|
|
76
77
|
$jekyll.deploy
|
|
77
78
|
when "new_site"
|
|
78
|
-
$jekyll.new_site
|
|
79
|
+
$jekyll.new_site(ARGV[1])
|
|
79
80
|
when "help"
|
|
80
81
|
$jekyll.help
|
|
81
82
|
when "list"
|
|
82
83
|
%x( hyde help )
|
|
83
84
|
else
|
|
84
|
-
puts "You didn't give me a command.\
|
|
85
|
+
puts " You didn't give me a command.\n Run 'hyde help' to see a command list."
|
|
85
86
|
end
|
|
86
87
|
|