sake 1.0.5 → 1.0.6
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/lib/help.rb +2 -0
- data/lib/sake.rb +5 -5
- metadata +1 -1
data/lib/help.rb
CHANGED
@@ -18,8 +18,10 @@ Usage: sake [options]
|
|
18
18
|
|
19
19
|
-u tasks Uninstall one or more tasks.
|
20
20
|
|
21
|
+
-e task Show the source for task.
|
21
22
|
-e file Show the source for all tasks from <file>.
|
22
23
|
-e file tasks Show the source for <task> as defined in <file>.
|
24
|
+
-P [file/tasks] Send the source for tasks to Pastie (see -e for options).
|
23
25
|
|
24
26
|
-S Start a Mongrel handler and serve your installed Sake tasks
|
25
27
|
over port 4567.
|
data/lib/sake.rb
CHANGED
@@ -41,7 +41,7 @@ require File.dirname(__FILE__) + '/pastie'
|
|
41
41
|
#
|
42
42
|
# Stores the source of a task into a pastie (http://pastie.caboo.se).
|
43
43
|
# Returns the url of the pastie to stdout.
|
44
|
-
# $ sake -
|
44
|
+
# $ sake -P routes
|
45
45
|
#
|
46
46
|
# Can be passed one or more tasks.
|
47
47
|
#
|
@@ -73,7 +73,7 @@ class Sake
|
|
73
73
|
module Version
|
74
74
|
Major = '1'
|
75
75
|
Minor = '0'
|
76
|
-
Tweak = '
|
76
|
+
Tweak = '6'
|
77
77
|
String = [ Major, Minor, Tweak ].join('.')
|
78
78
|
end
|
79
79
|
|
@@ -133,9 +133,9 @@ class Sake
|
|
133
133
|
##
|
134
134
|
# Save one or more tasks to Pastie (http://pastie.caboos.se)
|
135
135
|
# then return the new Pastie's url
|
136
|
-
# $ sake -
|
137
|
-
# $ sake -
|
138
|
-
elsif index = @args.index('-
|
136
|
+
# $ sake -P routes
|
137
|
+
# $ sake -P Rakefile db:remigrate
|
138
|
+
elsif index = @args.index('-P')
|
139
139
|
die Pastie.paste(examine(index))
|
140
140
|
|
141
141
|
##
|
metadata
CHANGED