Class: FluentCommandBuilder::Tf::V2010::AddProxyRecord
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::AddProxyRecord
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #default(scope) {|@builder| ... } ⇒ Object
- #description(description) {|@builder| ... } ⇒ Object
-
#initialize(builder, url) ⇒ AddProxyRecord
constructor
A new instance of AddProxyRecord.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #name(name) {|@builder| ... } ⇒ Object
- #site(site_name) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, url) ⇒ AddProxyRecord
Returns a new instance of AddProxyRecord.
1306 1307 1308 1309 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1306 def initialize(builder, url) super builder @builder.append " proxy /add #{@builder.format url}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1330 1331 1332 1333 1334 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1330 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#default(scope) {|@builder| ... } ⇒ Object
1325 1326 1327 1328 1329 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1325 def default(scope) @builder.append " /default:#{@builder.format scope}" yield @builder if block_given? self end |
#description(description) {|@builder| ... } ⇒ Object
1320 1321 1322 1323 1324 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1320 def description(description) @builder.append " /description:#{@builder.format description}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1335 1336 1337 1338 1339 1340 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1335 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 |
#name(name) {|@builder| ... } ⇒ Object
1310 1311 1312 1313 1314 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1310 def name(name) @builder.append " /name:#{@builder.format name}" yield @builder if block_given? self end |
#site(site_name) {|@builder| ... } ⇒ Object
1315 1316 1317 1318 1319 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1315 def site(site_name) @builder.append " /site:#{@builder.format site_name}" yield @builder if block_given? self end |