Class: Albacore::IsPackage::Config

Inherits:
Object
  • Object
show all
Extended by:
ConfigDSL
Includes:
CmdConfig, Logging
Defined in:
lib/albacore/task_types/is_package.rb

Overview

The configuration class for ISDeploymentWizard. MSDN docs at: msdn.microsoft.com/en-gb/library/hh213373.aspx

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConfigDSL

attr_path, attr_path_accessor

Methods included from Logging

#debug, #err, #error, #fatal, #info, #puts, #trace, #warn

Methods included from CmdConfig

#add_parameter, #parameters

Constructor Details

#initializeConfig

Returns a new instance of Config.



46
47
48
49
50
51
52
53
54
# File 'lib/albacore/task_types/is_package.rb', line 46

def initialize
  @parameters = Set.new

  w = lambda { |e| CrossPlatformCmd.which(e) ? e : nil }

  @exe = w.call( "ISDeploymentWizard" ) 

  debug { "ISDeploymentWizard using '#{@exe}'" }
end

Instance Attribute Details

#databaseObject

this is the database of ISDeploymentWizard



37
38
39
# File 'lib/albacore/task_types/is_package.rb', line 37

def database
  @database
end

#folder_nameObject

this is the folder_name of ISDeploymentWizard



40
41
42
# File 'lib/albacore/task_types/is_package.rb', line 40

def folder_name
  @folder_name
end

#is_packageObject (readonly)

this is the is_package of ISDeploymentWizard



31
32
33
# File 'lib/albacore/task_types/is_package.rb', line 31

def is_package
  @is_package
end

#project_nameObject

this is the project_name of ISDeploymentWizard



43
44
45
# File 'lib/albacore/task_types/is_package.rb', line 43

def project_name
  @project_name
end

#serverObject (readonly)

this is the server of ISDeploymentWizard



34
35
36
# File 'lib/albacore/task_types/is_package.rb', line 34

def server
  @server
end

Instance Method Details

#be_quietObject



56
57
58
# File 'lib/albacore/task_types/is_package.rb', line 56

def be_quiet
  @parameters.add "/Silent"
end

#get_parametersObject



68
69
70
71
# File 'lib/albacore/task_types/is_package.rb', line 68

def get_parameters
  make_folder
  @parameters
end