Class: FluentCommandBuilder::Tf::V2010::Configure
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Configure
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
-
#initialize(builder, path_of_team_project = nil) ⇒ Configure
constructor
A new instance of Configure.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, path_of_team_project = nil) ⇒ Configure
Returns a new instance of Configure.
482 483 484 485 486 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 482 def initialize(builder, path_of_team_project=nil) super builder @builder.append ' configure' @builder.append " #{@builder.format path_of_team_project}" unless path_of_team_project.nil? end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
487 488 489 490 491 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 487 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
492 493 494 495 496 497 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 492 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 |