Class: FluentCommandBuilder::Tf::V2010::Branch
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Branch
- Defined in:
- lib/fluent_command_builder/command_builders/tf_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
241 242 243 244 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 241 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
280 281 282 283 284 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 280 def () @builder.append " /author:#{@builder.format }" yield @builder if block_given? self end |
#checkin {|@builder| ... } ⇒ Object
270 271 272 273 274 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 270 def checkin @builder.append ' /checkin' yield @builder if block_given? self end |
#comment(comment) {|@builder| ... } ⇒ Object
275 276 277 278 279 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 275 def comment(comment) @builder.append " /comment:#{@builder.format comment}" yield @builder if block_given? self end |
#lock(lock_type) {|@builder| ... } ⇒ Object
255 256 257 258 259 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 255 def lock(lock_type) @builder.append " /lock:#{@builder.format lock_type}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
285 286 287 288 289 290 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 285 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
250 251 252 253 254 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 250 def no_get @builder.append ' /noGet' yield @builder if block_given? self end |
#no_prompt {|@builder| ... } ⇒ Object
260 261 262 263 264 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 260 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#silent {|@builder| ... } ⇒ Object
265 266 267 268 269 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 265 def silent @builder.append ' /silent' yield @builder if block_given? self end |
#version(version_spec) {|@builder| ... } ⇒ Object
245 246 247 248 249 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 245 def version(version_spec) @builder.append " /version:#{@builder.format version_spec}" yield @builder if block_given? self end |