module Albacore::DSL

Private Instance Methods

asmver(*args) { |c, own_args| ... } click to toggle source

a rake task type for outputting assembly versions

# File lib/albacore/dsl.rb, line 13
def asmver *args, &block
  require 'albacore/task_types/asmver'
  Albacore.define_task *args do |task_name, own_args|
    c = Albacore::Asmver::Config.new
    yield c, own_args
    Albacore::Asmver::Task.new(c.opts).execute
  end
end
asmver_files(*args) { |c, own_args| ... } click to toggle source
# File lib/albacore/dsl.rb, line 22
def asmver_files *args, &block
  require 'albacore/task_types/asmver'
  Albacore.define_task *args do |task_name, own_args|
    c = Albacore::Asmver::MultipleFilesConfig.new
    yield c, own_args

    c.configurations.each do |conf|
      trace { "generating asmver for #{conf}" }
      Albacore::Asmver::Task.new(conf.opts).execute
    end
  end
end
build(*args) { |c, own_args| ... } click to toggle source

a task for building sln or proj files - or just invoking something with MsBuild

# File lib/albacore/dsl.rb, line 37
def build *args, &block
  require 'albacore/task_types/build'
  Albacore.define_task *args do |task_name, own_args|
    c = Albacore::Build::Config.new
    yield c, own_args

    fail "unable to find MsBuild or XBuild" unless c.exe

    c.files.each do |f|
      command = Albacore::Build::Cmd.new(c.work_dir, c.exe, c.params_for_file(f))
      Albacore::Build::Task.new(command).execute
    end
  end
end
is_package(*args) { |c, own_args| ... } click to toggle source

a task for publishing Integration Services Packages with IsPackage

# File lib/albacore/dsl.rb, line 97
def is_package *args, &block
  require 'albacore/task_types/is_package'
  Albacore.define_task *args do |task_name, own_args|
    c = Albacore::IsPackage::Config.new
    yield c, own_args

    fail "IsPackage.exe is not installed.\nPlease download and install Microsoft SSDT-BI: https://msdn.microsoft.com/en-us/library/mt674919.aspx\nAnd add the location of IsPackage.exe to the PATH system varible." unless c.exe

    command = Albacore::IsPackage::Cmd.new(c.work_dir, c.exe, c.get_parameters)
    Albacore::IsPackage::Task.new(command).execute
  end
end
nugets_pack(*args) { |c, own_args| ... } click to toggle source

pack nugets

# File lib/albacore/dsl.rb, line 60
def nugets_pack *args, &block
  require 'albacore/task_types/nugets_pack'
  Albacore.define_task *args do |task_name, own_args|
    c = Albacore::NugetsPack::Config.new
    yield c, own_args
    Albacore::NugetsPack::Cmd.new(c).execute
  end
end
nugets_restore(*args, &block) click to toggle source

restore the nugets to the solution

# File lib/albacore/dsl.rb, line 53
def nugets_restore *args, &block
  Albacore.define_task *args do |task_name, own_args|
    system '.paket/paket.exe', %w|restore|
  end
end
sql_cmd(*args) { |c, own_args| ... } click to toggle source

a task for publishing sql scripts with Sql

# File lib/albacore/dsl.rb, line 86
def sql_cmd *args, &block
  require 'albacore/task_types/sql_cmd'
  Albacore.define_task *args do |task_name, own_args|
    c = Albacore::Sql::Config.new
    yield c, own_args
    Albacore::Sql::SqlTask.new(c.work_dir, c.opts).execute
  end
end
sql_package(*args) { |c, own_args| ... } click to toggle source

a task for publishing sql databases with SqlPackage

# File lib/albacore/dsl.rb, line 71
def sql_package *args, &block
  require 'albacore/task_types/sql_package'
  Albacore.define_task *args do |task_name, own_args|
    c = Albacore::SqlPackage::Config.new
    yield c, own_args

    fail "SqlPackage.exe is not installed.\nPlease download and install Microsoft SSDT: https://msdn.microsoft.com/en-us/library/mt204009.aspx\nAnd add the location of SqlPackage.exe to the PATH system varible." unless c.exe

    command = Albacore::SqlPackage::Cmd.new(c.work_dir, c.exe, c.parameters)
    Albacore::SqlPackage::Task.new(command).execute
  end
end