Class: FluentCommandBuilder::Tf::V2010::Shelvesets

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_2010.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, shelveset_name = nil) ⇒ Shelvesets

Returns a new instance of Shelvesets.



1605
1606
1607
1608
1609
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1605

def initialize(builder, shelveset_name=nil)
  super builder
  @builder.append ' shelvesets'
  @builder.append " #{@builder.format shelveset_name}" unless shelveset_name.nil?
end

Instance Method Details

#collection(team_project_collection_url) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1620
1621
1622
1623
1624
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1620

def collection(team_project_collection_url)
  @builder.append " /collection:#{@builder.format team_project_collection_url}"
  yield @builder if block_given?
  self
end

#format(format) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1615
1616
1617
1618
1619
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1615

def format(format)
  @builder.append " /format:#{@builder.format format}"
  yield @builder if block_given?
  self
end

#login(username, password = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1625
1626
1627
1628
1629
1630
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1625

def (username, password=nil)
  @builder.append " /login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

#owner(owner_name) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1610
1611
1612
1613
1614
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1610

def owner(owner_name)
  @builder.append " /owner:#{@builder.format owner_name}"
  yield @builder if block_given?
  self
end