Class: FluentCommandBuilder::Tf::V2010::CreateWorkspace
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::CreateWorkspace
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #comment(comment) {|@builder| ... } ⇒ Object
- #computer(computer_name) {|@builder| ... } ⇒ Object
-
#initialize(builder, workspace_name, workspace_owner = nil) ⇒ CreateWorkspace
constructor
A new instance of CreateWorkspace.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #permission(permission) {|@builder| ... } ⇒ Object
- #template(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
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
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
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
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
2018 2019 2020 2021 2022 2023 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2018 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 |
#no_prompt {|@builder| ... } ⇒ Object
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
2013 2014 2015 2016 2017 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2013 def () @builder.append " /permission:#{@builder.format }" yield @builder if block_given? self end |
#template(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
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 |