class Physique::OctopusPack::Config

Attributes

configuration[W]
exe[W]
metadata[W]
original_path[W]
out[W]
project_file[W]
type[W]

Public Instance Methods

opts() click to toggle source
# File lib/physique/tasks/octopus_pack.rb, line 15
def opts
  raise ArgumentError, 'You must specify a project file' if @project_file.blank?
  raise ArgumentError, 'You must specify a version' if @metadata.version.blank?
  raise ArgumentError, 'You must specify the NuGet executable' if @exe.blank?
  raise ArgumentError, 'You must specify an output folder' if @out.blank?

  Map.new({
    project_file: @project_file,
    type: @type,
    configuration: @configuration,
    exe: @exe,
    out: @out,
    original_path: @original_path,
    metadata: @metadata,
  }).apply({
    type: :console,
    configuration: 'Release',
    original_path: FileUtils.pwd,
    verify_files: true,
  })
end