Class: FluentCommandBuilder::Tf::TEE2010::CreateWorkspace

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, workspace_name, workspace_owner = nil) ⇒ CreateWorkspace

Returns a new instance of CreateWorkspace.



1805
1806
1807
1808
1809
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1805

def initialize(builder, workspace_name, workspace_owner=nil)
  super builder
  @builder.append " workspace -new #{@builder.format workspace_name}"
  @builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
end

Instance Method Details

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

Yields:

  • (@builder)


1831
1832
1833
1834
1835
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1831

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

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

Yields:

  • (@builder)


1826
1827
1828
1829
1830
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1826

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

#computer(computer_name) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1821
1822
1823
1824
1825
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1821

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

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

Yields:

  • (@builder)


1841
1842
1843
1844
1845
1846
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1841

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

#no_prompt {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1810
1811
1812
1813
1814
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1810

def no_prompt
  @builder.append ' -noPrompt'
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


1836
1837
1838
1839
1840
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1836

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

#template(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1815
1816
1817
1818
1819
1820
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1815

def template(workspace_name, workspace_owner=nil)
  @builder.append " -template:#{@builder.format workspace_name}"
  @builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
  yield @builder if block_given?
  self
end