fluent_command_builder 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,9 +4,10 @@ module FluentCommandBuilder
|
|
4
4
|
module Rake
|
5
5
|
module V09
|
6
6
|
class Rake
|
7
|
-
def initialize builder
|
7
|
+
def initialize builder, task=nil
|
8
8
|
@builder = builder
|
9
9
|
@builder.append 'rake'
|
10
|
+
@builder.append " #{@builder.format task, ' '}" unless task.nil?
|
10
11
|
end
|
11
12
|
def classic_namespace
|
12
13
|
@builder.append ' --classic-namespace'
|
@@ -20,7 +21,7 @@ module FluentCommandBuilder
|
|
20
21
|
@builder.append ' --dry-run'
|
21
22
|
self
|
22
23
|
end
|
23
|
-
def
|
24
|
+
def execute_code code
|
24
25
|
@builder.append " --execute #{@builder.format code}"
|
25
26
|
self
|
26
27
|
end
|
@@ -112,12 +113,12 @@ module FluentCommandBuilder
|
|
112
113
|
end
|
113
114
|
end
|
114
115
|
end
|
115
|
-
def rake
|
116
|
-
Rake.new CommandBuilder.new
|
116
|
+
def rake task=nil
|
117
|
+
Rake.new CommandBuilder.new, task
|
117
118
|
end
|
118
119
|
end
|
119
120
|
end
|
120
|
-
def rake_09
|
121
|
-
Rake::V09::Rake.new CommandBuilder.new
|
121
|
+
def rake_09 task=nil
|
122
|
+
Rake::V09::Rake.new CommandBuilder.new, task
|
122
123
|
end
|
123
124
|
end
|