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.



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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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