Class: FluentCommandBuilder::NuGet::V20::Install

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_id_or_path_to_packages_config) ⇒ Install

Returns a new instance of Install.



130
131
132
133
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 130

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

Instance Method Details

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

Yields:

  • (@b)


149
150
151
152
153
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 149

def exclude_version
  @b.append ' -ExcludeVersion'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


164
165
166
167
168
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 164

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

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

Yields:

  • (@b)


159
160
161
162
163
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 159

def no_cache
  @b.append ' -NoCache'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


139
140
141
142
143
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 139

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

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

Yields:

  • (@b)


154
155
156
157
158
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 154

def prerelease
  @b.append ' -Prerelease'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


134
135
136
137
138
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 134

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

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

Yields:

  • (@b)


144
145
146
147
148
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 144

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