Class: FluentCommandBuilder::NuGet::V20::Config

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) ⇒ Config

Returns a new instance of Config.



65
66
67
68
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 65

def initialize(underlying_builder)
  super underlying_builder
  @b.append ' config'
end

Instance Method Details

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

Yields:

  • (@b)


74
75
76
77
78
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 74

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

#set(name, value) {|@b| ... } ⇒ Object

Yields:

  • (@b)


69
70
71
72
73
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 69

def set(name, value)
  @b.append " -Set #{@b.format name}=#{@b.format value}"
  yield @b if block_given?
  self
end