Class: FluentCommandBuilder::Rake::V100::Rake

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/rake_100.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, task = nil) ⇒ Rake

Returns a new instance of Rake.



24
25
26
27
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 24

def initialize(underlying_builder, task=nil)
  super underlying_builder
  @b.append " #{@b.format task, ' '}" unless task.nil?
end

Instance Method Details

#all {|@b| ... } ⇒ Object

Yields:

  • (@b)


28
29
30
31
32
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 28

def all
  @b.append ' --all'
  yield @b if block_given?
  self
end

#backtrace(out = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


33
34
35
36
37
38
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 33

def backtrace(out=nil)
  @b.append ' --backtrace'
  @b.append "=#{@b.format out}" unless out.nil?
  yield @b if block_given?
  self
end

#classic_namespace {|@b| ... } ⇒ Object

Yields:

  • (@b)


39
40
41
42
43
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 39

def classic_namespace
  @b.append ' --classic-namespace'
  yield @b if block_given?
  self
end

#comments {|@b| ... } ⇒ Object

Yields:

  • (@b)


44
45
46
47
48
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 44

def comments
  @b.append ' --comments'
  yield @b if block_given?
  self
end

#describe(pattern) {|@b| ... } ⇒ Object

Yields:

  • (@b)


49
50
51
52
53
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 49

def describe(pattern)
  @b.append " --describe #{@b.format pattern}"
  yield @b if block_given?
  self
end

#dry_run {|@b| ... } ⇒ Object

Yields:

  • (@b)


54
55
56
57
58
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 54

def dry_run
  @b.append ' --dry-run'
  yield @b if block_given?
  self
end

#execute(code) {|@b| ... } ⇒ Object

Yields:

  • (@b)


59
60
61
62
63
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 59

def execute(code)
  @b.append " --execute #{@b.format code}"
  yield @b if block_given?
  self
end

#execute_continue(code) {|@b| ... } ⇒ Object

Yields:

  • (@b)


64
65
66
67
68
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 64

def execute_continue(code)
  @b.append " --execute-continue #{@b.format code}"
  yield @b if block_given?
  self
end

#execute_print(code) {|@b| ... } ⇒ Object

Yields:

  • (@b)


69
70
71
72
73
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 69

def execute_print(code)
  @b.append " --execute-print #{@b.format code}"
  yield @b if block_given?
  self
end

#help {|@b| ... } ⇒ Object

Yields:

  • (@b)


74
75
76
77
78
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 74

def help
  @b.append ' --help'
  yield @b if block_given?
  self
end

#job_stats(level = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


85
86
87
88
89
90
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 85

def job_stats(level=nil)
  @b.append ' --job-stats'
  @b.append " #{@b.format level}" unless level.nil?
  yield @b if block_given?
  self
end

#jobs(number = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


79
80
81
82
83
84
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 79

def jobs(number=nil)
  @b.append ' --jobs'
  @b.append " #{@b.format number}" unless number.nil?
  yield @b if block_given?
  self
end

#libdir(lib_dir) {|@b| ... } ⇒ Object

Yields:

  • (@b)


91
92
93
94
95
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 91

def libdir(lib_dir)
  @b.append " --libdir #{@b.format lib_dir}"
  yield @b if block_given?
  self
end

#multitask {|@b| ... } ⇒ Object

Yields:

  • (@b)


96
97
98
99
100
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 96

def multitask
  @b.append ' --multitask'
  yield @b if block_given?
  self
end

#no_deprecation_warnings {|@b| ... } ⇒ Object

Yields:

  • (@b)


101
102
103
104
105
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 101

def no_deprecation_warnings
  @b.append ' --no-deprecation-warnings'
  yield @b if block_given?
  self
end

#no_search {|@b| ... } ⇒ Object

Yields:

  • (@b)


106
107
108
109
110
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 106

def no_search
  @b.append ' --no-search'
  yield @b if block_given?
  self
end

#no_system {|@b| ... } ⇒ Object

Yields:

  • (@b)


111
112
113
114
115
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 111

def no_system
  @b.append ' --no-system'
  yield @b if block_given?
  self
end

#prereqs {|@b| ... } ⇒ Object

Yields:

  • (@b)


116
117
118
119
120
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 116

def prereqs
  @b.append ' --prereqs'
  yield @b if block_given?
  self
end

#quiet {|@b| ... } ⇒ Object

Yields:

  • (@b)


121
122
123
124
125
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 121

def quiet
  @b.append ' --quiet'
  yield @b if block_given?
  self
end

#rakefile(file) {|@b| ... } ⇒ Object

Yields:

  • (@b)


126
127
128
129
130
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 126

def rakefile(file)
  @b.append " --rakefile #{@b.format file}"
  yield @b if block_given?
  self
end

#rakelibdir(rake_lib_dir) {|@b| ... } ⇒ Object

Yields:

  • (@b)


131
132
133
134
135
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 131

def rakelibdir(rake_lib_dir)
  @b.append " --rakelibdir #{@b.format rake_lib_dir}"
  yield @b if block_given?
  self
end

#require(file) {|@b| ... } ⇒ Object

Yields:

  • (@b)


136
137
138
139
140
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 136

def require(file)
  @b.append " --require #{@b.format file}"
  yield @b if block_given?
  self
end

#rules {|@b| ... } ⇒ Object

Yields:

  • (@b)


141
142
143
144
145
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 141

def rules
  @b.append ' --rules'
  yield @b if block_given?
  self
end

#silent {|@b| ... } ⇒ Object

Yields:

  • (@b)


146
147
148
149
150
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 146

def silent
  @b.append ' --silent'
  yield @b if block_given?
  self
end

#suppress_backtrace(pattern) {|@b| ... } ⇒ Object

Yields:

  • (@b)


151
152
153
154
155
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 151

def suppress_backtrace(pattern)
  @b.append " --suppress-backtrace #{@b.format pattern}"
  yield @b if block_given?
  self
end

#system {|@b| ... } ⇒ Object

Yields:

  • (@b)


156
157
158
159
160
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 156

def system
  @b.append ' --system'
  yield @b if block_given?
  self
end

#tasks(pattern = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


161
162
163
164
165
166
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 161

def tasks(pattern=nil)
  @b.append ' --tasks'
  @b.append " #{@b.format pattern}" unless pattern.nil?
  yield @b if block_given?
  self
end

#trace(out = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


167
168
169
170
171
172
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 167

def trace(out=nil)
  @b.append ' --trace'
  @b.append "=#{@b.format out}" unless out.nil?
  yield @b if block_given?
  self
end

#verbose {|@b| ... } ⇒ Object

Yields:

  • (@b)


173
174
175
176
177
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 173

def verbose
  @b.append ' --verbose'
  yield @b if block_given?
  self
end

#version {|@b| ... } ⇒ Object

Yields:

  • (@b)


178
179
180
181
182
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 178

def version
  @b.append ' --version'
  yield @b if block_given?
  self
end

#where(pattern = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


183
184
185
186
187
188
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 183

def where(pattern=nil)
  @b.append ' --where'
  @b.append " #{@b.format pattern}" unless pattern.nil?
  yield @b if block_given?
  self
end