Class: FluentCommandBuilder::Rake::V100::Rake
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Rake::V100::Rake
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
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
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
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
|
44
45
46
47
48
|
# File 'lib/fluent_command_builder/command_builders/rake_100.rb', line 44
def
@b.append ' --comments'
yield @b if block_given?
self
end
|
#describe(pattern) {|@b| ... } ⇒ Object
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
|