Class: FluentCommandBuilder::Tf::V2010::Permission
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Permission
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #allow(permission) {|@builder| ... } ⇒ Object
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #deny(permission) {|@builder| ... } ⇒ Object
- #global {|@builder| ... } ⇒ Object
- #group(group_name) {|@builder| ... } ⇒ Object
- #inherit(inherit) {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec) ⇒ Permission
constructor
A new instance of Permission.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #remove(permission) {|@builder| ... } ⇒ Object
- #user(user_name) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ Permission
Returns a new instance of Permission.
1199 1200 1201 1202 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1199 def initialize(builder, item_spec) super builder @builder.append " permission #{@builder.format item_spec}" end |
Instance Method Details
#allow(permission) {|@builder| ... } ⇒ Object
1203 1204 1205 1206 1207 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1203 def allow() @builder.append " /allow:#{@builder.format permission, ','}" yield @builder if block_given? self end |
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1233 1234 1235 1236 1237 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1233 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#deny(permission) {|@builder| ... } ⇒ Object
1208 1209 1210 1211 1212 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1208 def deny() @builder.append " /deny:#{@builder.format permission, ','}" yield @builder if block_given? self end |
#global {|@builder| ... } ⇒ Object
1243 1244 1245 1246 1247 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1243 def global @builder.append ' /global' yield @builder if block_given? self end |
#group(group_name) {|@builder| ... } ⇒ Object
1228 1229 1230 1231 1232 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1228 def group(group_name) @builder.append " /group:#{@builder.format group_name, ','}" yield @builder if block_given? self end |
#inherit(inherit) {|@builder| ... } ⇒ Object
1218 1219 1220 1221 1222 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1218 def inherit(inherit) @builder.append " /inherit:#{@builder.format inherit}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1248 1249 1250 1251 1252 1253 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1248 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 |
#recursive {|@builder| ... } ⇒ Object
1238 1239 1240 1241 1242 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1238 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#remove(permission) {|@builder| ... } ⇒ Object
1213 1214 1215 1216 1217 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1213 def remove() @builder.append " /remove:#{@builder.format permission, ','}" yield @builder if block_given? self end |
#user(user_name) {|@builder| ... } ⇒ Object
1223 1224 1225 1226 1227 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1223 def user(user_name) @builder.append " /user:#{@builder.format user_name, ','}" yield @builder if block_given? self end |