Class: FluentCommandBuilder::MSBuild::V20::MSBuild

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/msbuild_20.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, project_file = nil) ⇒ MSBuild

Returns a new instance of MSBuild.



25
26
27
28
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 25

def initialize(underlying_builder, project_file=nil)
  super underlying_builder
  @b.append " #{@b.format project_file}" unless project_file.nil?
end

Instance Method Details

#console_logger_parameters(parameters) {|@b| ... } ⇒ Object

Yields:

  • (@b)


69
70
71
72
73
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 69

def console_logger_parameters(parameters)
  @b.append " /consoleLoggerParameters:#{@b.format parameters}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


44
45
46
47
48
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 44

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

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

Yields:

  • (@b)


29
30
31
32
33
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 29

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

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

Yields:

  • (@b)


64
65
66
67
68
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 64

def logger(logger)
  @b.append " /logger:#{@b.format logger}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


49
50
51
52
53
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 49

def no_auto_response
  @b.append ' /noAutoResponse'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


79
80
81
82
83
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 79

def no_console_logger
  @b.append ' /noConsoleLogger'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


34
35
36
37
38
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 34

def 
  @b.append ' /noLogo'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


59
60
61
62
63
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 59

def property(property)
  @b.append " /property:#{@b.format property, ';', '='}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


54
55
56
57
58
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 54

def target(target)
  @b.append " /target:#{@b.format target, ';'}"
  yield @b if block_given?
  self
end

#validate(schema = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


84
85
86
87
88
89
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 84

def validate(schema=nil)
  @b.append ' /validate'
  @b.append ":#{@b.format schema}" unless schema.nil?
  yield @b if block_given?
  self
end

#verbosity(level) {|@b| ... } ⇒ Object

Yields:

  • (@b)


74
75
76
77
78
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 74

def verbosity(level)
  @b.append " /verbosity:#{@b.format level}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


39
40
41
42
43
# File 'lib/fluent_command_builder/command_builders/msbuild_20.rb', line 39

def version
  @b.append ' /version'
  yield @b if block_given?
  self
end