Class: FluentCommandBuilder::Tf::V2010::CreateWorkspace

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, workspace_name, workspace_owner = nil) ⇒ CreateWorkspace



1982
1983
1984
1985
1986
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1982

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)


2008
2009
2010
2011
2012
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2008

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)


2003
2004
2005
2006
2007
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2003

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

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

Yields:

  • (@builder)


1998
1999
2000
2001
2002
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1998

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)


2018
2019
2020
2021
2022
2023
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2018

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)


1987
1988
1989
1990
1991
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1987

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

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

Yields:

  • (@builder)


2013
2014
2015
2016
2017
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2013

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)


1992
1993
1994
1995
1996
1997
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1992

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