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.



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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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