fluent_command_builder 0.1.12 → 0.1.13

This diff has not been reviewed by any users.
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 execute code
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent_command_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: