Class: FluentCommandBuilder::Tf::TEE2010::Branch
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Branch
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #author(author_name) {|@builder| ... } ⇒ Object
- #checkin {|@builder| ... } ⇒ Object
- #comment(comment) {|@builder| ... } ⇒ Object
-
#initialize(builder, old_item, new_item) ⇒ Branch
constructor
A new instance of Branch.
- #lock(lock_type) {|@builder| ... } ⇒ Object
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_get {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #silent {|@builder| ... } ⇒ Object
- #version(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, old_item, new_item) ⇒ Branch
Returns a new instance of Branch.
229 230 231 232 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 229 def initialize(builder, old_item, new_item) super builder @builder.append " branch #{@builder.format old_item} #{@builder.format new_item}" end |
Instance Method Details
#author(author_name) {|@builder| ... } ⇒ Object
268 269 270 271 272 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 268 def () @builder.append " -author:#{@builder.format }" yield @builder if block_given? self end |
#checkin {|@builder| ... } ⇒ Object
258 259 260 261 262 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 258 def checkin @builder.append ' -checkin' yield @builder if block_given? self end |
#comment(comment) {|@builder| ... } ⇒ Object
263 264 265 266 267 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 263 def comment(comment) @builder.append " -comment:#{@builder.format comment}" yield @builder if block_given? self end |
#lock(lock_type) {|@builder| ... } ⇒ Object
243 244 245 246 247 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 243 def lock(lock_type) @builder.append " -lock:#{@builder.format lock_type}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
273 274 275 276 277 278 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 273 def login(username, password=nil) @builder.append " -login:#{@builder.format username}" @builder.append ",#{@builder.format password}" unless password.nil? yield @builder if block_given? self end |
#no_get {|@builder| ... } ⇒ Object
238 239 240 241 242 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 238 def no_get @builder.append ' -noGet' yield @builder if block_given? self end |
#no_prompt {|@builder| ... } ⇒ Object
248 249 250 251 252 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 248 def no_prompt @builder.append ' -noPrompt' yield @builder if block_given? self end |
#silent {|@builder| ... } ⇒ Object
253 254 255 256 257 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 253 def silent @builder.append ' -silent' yield @builder if block_given? self end |
#version(version_spec) {|@builder| ... } ⇒ Object
233 234 235 236 237 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 233 def version(version_spec) @builder.append " -version:#{@builder.format version_spec}" yield @builder if block_given? self end |