Class: FluentCommandBuilder::NuGet::V20::Push

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, package_path) ⇒ Push

Returns a new instance of Push.



289
290
291
292
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 289

def initialize(underlying_builder, package_path)
  super underlying_builder
  @b.append " push #{@b.format package_path}"
end

Instance Method Details

#api_key(api_key) {|@b| ... } ⇒ Object

Yields:

  • (@b)


303
304
305
306
307
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 303

def api_key(api_key)
  @b.append " -ApiKey #{@b.format api_key}"
  yield @b if block_given?
  self
end

#create_only {|@b| ... } ⇒ Object

Yields:

  • (@b)


293
294
295
296
297
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 293

def create_only
  @b.append ' -CreateOnly'
  yield @b if block_given?
  self
end

#help {|@b| ... } ⇒ Object

Yields:

  • (@b)


313
314
315
316
317
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 313

def help
  @b.append ' -Help'
  yield @b if block_given?
  self
end

#source(source) {|@b| ... } ⇒ Object

Yields:

  • (@b)


298
299
300
301
302
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 298

def source(source)
  @b.append " -Source #{@b.format source}"
  yield @b if block_given?
  self
end

#timeout(seconds) {|@b| ... } ⇒ Object

Yields:

  • (@b)


308
309
310
311
312
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 308

def timeout(seconds)
  @b.append " -Timeout #{@b.format seconds}"
  yield @b if block_given?
  self
end