Class: FluentCommandBuilder::Tf::V2010::Properties
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Properties
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec) ⇒ Properties
constructor
A new instance of Properties.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #version(version_spec) {|@builder| ... } ⇒ Object
- #workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ Properties
Returns a new instance of Properties.
1256 1257 1258 1259 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1256 def initialize(builder, item_spec) super builder @builder.append " properties #{@builder.format item_spec}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1260 1261 1262 1263 1264 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1260 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
1270 1271 1272 1273 1274 1275 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1270 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 |
#recursive {|@builder| ... } ⇒ Object
1265 1266 1267 1268 1269 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1265 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#version(version_spec) {|@builder| ... } ⇒ Object
1276 1277 1278 1279 1280 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1276 def version(version_spec) @builder.append " /version:#{@builder.format version_spec}" yield @builder if block_given? self end |
#workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
1281 1282 1283 1284 1285 1286 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1281 def workspace(workspace_name, workspace_owner=nil) @builder.append " /workspace:#{@builder.format workspace_name}" @builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil? yield @builder if block_given? self end |