fluent_command_builder 0.5.6 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. data/lib/command_version_detector.rb +1 -0
  2. data/lib/fluent_command_builder/command_base.rb +20 -11
  3. data/lib/fluent_command_builder/command_builders/appcfg_python.rb +17 -0
  4. data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +1059 -1059
  5. data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +1055 -1055
  6. data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +17 -0
  7. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +46 -46
  8. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +46 -46
  9. data/lib/fluent_command_builder/command_builders/bundle.rb +17 -0
  10. data/lib/fluent_command_builder/command_builders/bundle_11.rb +140 -140
  11. data/lib/fluent_command_builder/command_builders/cucumber.rb +17 -0
  12. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +76 -76
  13. data/lib/fluent_command_builder/command_builders/cucumber_12.rb +78 -78
  14. data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +17 -0
  15. data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +91 -86
  16. data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +91 -86
  17. data/lib/fluent_command_builder/command_builders/dotcover.rb +17 -0
  18. data/lib/fluent_command_builder/command_builders/dotcover_10.rb +33 -33
  19. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +133 -133
  20. data/lib/fluent_command_builder/command_builders/dotcover_12.rb +133 -133
  21. data/lib/fluent_command_builder/command_builders/dotcover_20.rb +137 -137
  22. data/lib/fluent_command_builder/command_builders/installutil.rb +17 -0
  23. data/lib/fluent_command_builder/command_builders/installutil_11.rb +31 -31
  24. data/lib/fluent_command_builder/command_builders/installutil_20.rb +33 -33
  25. data/lib/fluent_command_builder/command_builders/installutil_35.rb +33 -33
  26. data/lib/fluent_command_builder/command_builders/installutil_40.rb +36 -36
  27. data/lib/fluent_command_builder/command_builders/msbuild.rb +17 -0
  28. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +43 -43
  29. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +43 -43
  30. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +59 -59
  31. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +62 -62
  32. data/lib/fluent_command_builder/command_builders/msdeploy.rb +17 -0
  33. data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +177 -0
  34. data/lib/fluent_command_builder/command_builders/mstest.rb +17 -0
  35. data/lib/fluent_command_builder/command_builders/mstest_100.rb +127 -0
  36. data/lib/fluent_command_builder/command_builders/mstest_80.rb +107 -0
  37. data/lib/fluent_command_builder/command_builders/mstest_90.rb +112 -0
  38. data/lib/fluent_command_builder/command_builders/netsh.rb +17 -0
  39. data/lib/fluent_command_builder/command_builders/netsh_61.rb +408 -0
  40. data/lib/fluent_command_builder/command_builders/nunit.rb +17 -0
  41. data/lib/fluent_command_builder/command_builders/nunit_25.rb +69 -64
  42. data/lib/fluent_command_builder/command_builders/nunit_26.rb +85 -80
  43. data/lib/fluent_command_builder/command_builders/rake.rb +17 -0
  44. data/lib/fluent_command_builder/command_builders/rake_09.rb +64 -64
  45. data/lib/fluent_command_builder/command_builders/security_osx.rb +17 -0
  46. data/lib/fluent_command_builder/command_builders/security_osx_107.rb +82 -82
  47. data/lib/fluent_command_builder/command_builders/sevenzip.rb +17 -0
  48. data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +243 -243
  49. data/lib/fluent_command_builder/command_builders/simian.rb +17 -0
  50. data/lib/fluent_command_builder/command_builders/simian_23.rb +63 -63
  51. data/lib/fluent_command_builder/command_builders/team_foundation.rb +17 -0
  52. data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +2155 -0
  53. data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +17 -0
  54. data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +1978 -0
  55. data/lib/fluent_command_builder/command_builders/xcodebuild.rb +17 -0
  56. data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +112 -112
  57. data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +132 -132
  58. data/lib/fluent_command_builder/{command_builder.rb → underlying_builder.rb} +2 -2
  59. data/lib/fluent_command_builder/util.rb +18 -0
  60. data/lib/fluent_command_builder/version_detectors/appcfg_python.rb +9 -0
  61. data/lib/fluent_command_builder/version_detectors/aspnet_compiler.rb +9 -0
  62. data/lib/fluent_command_builder/version_detectors/bundle.rb +9 -0
  63. data/lib/fluent_command_builder/version_detectors/cucumber.rb +9 -0
  64. data/lib/fluent_command_builder/version_detectors/dev_appserver_python.rb +9 -0
  65. data/lib/fluent_command_builder/version_detectors/dotcover.rb +9 -0
  66. data/lib/fluent_command_builder/version_detectors/installutil.rb +9 -0
  67. data/lib/fluent_command_builder/version_detectors/lib/appengine_python_version_detector.rb +16 -0
  68. data/lib/fluent_command_builder/version_detectors/lib/path_finder.rb +43 -0
  69. data/lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb +14 -0
  70. data/lib/fluent_command_builder/version_detectors/msbuild.rb +9 -0
  71. data/lib/fluent_command_builder/version_detectors/msdeploy.rb +9 -0
  72. data/lib/fluent_command_builder/version_detectors/mstest.rb +9 -0
  73. data/lib/fluent_command_builder/version_detectors/nuget.rb +9 -0
  74. data/lib/fluent_command_builder/version_detectors/nunit.rb +9 -0
  75. data/lib/fluent_command_builder/version_detectors/rake.rb +9 -0
  76. data/lib/fluent_command_builder/version_detectors/security_osx.rb +9 -0
  77. data/lib/fluent_command_builder/version_detectors/sevenzip.rb +9 -0
  78. data/lib/fluent_command_builder/version_detectors/team_foundation.rb +9 -0
  79. data/lib/fluent_command_builder/version_detectors/xcodebuild.rb +9 -0
  80. data/lib/fluent_command_builder.rb +26 -7
  81. metadata +53 -12
  82. data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +0 -177
  83. data/lib/fluent_command_builder/command_builders/mstest_2005.rb +0 -107
  84. data/lib/fluent_command_builder/command_builders/mstest_2008.rb +0 -112
  85. data/lib/fluent_command_builder/command_builders/mstest_2010.rb +0 -127
  86. data/lib/fluent_command_builder/command_builders/netsh_2008.rb +0 -408
  87. data/lib/fluent_command_builder/command_builders/tf_2010.rb +0 -2155
  88. data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +0 -1978
@@ -0,0 +1,17 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../util')
3
+
4
+ module FluentCommandBuilder
5
+ def simian(&block)
6
+ Simian.create &block
7
+ end
8
+ module Simian
9
+ COMMAND_NAME = 'simian'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::Simian::COMMAND_NAME
12
+ c = version_module(Simian).create b
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ end
17
+ end
@@ -1,142 +1,142 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../command_base')
2
- require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
3
3
 
4
4
  module FluentCommandBuilder
5
+ def simian_23
6
+ FluentCommandBuilder::Simian::V23.create { |b| yield b if block_given? }
7
+ end
5
8
  module Simian
6
9
  module V23
7
- COMMAND_NAME = 'simian'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::Simian::COMMAND_NAME
12
+ c = Simian.new(b)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def simian
17
+ FluentCommandBuilder::Simian::V23.create { |b| yield b if block_given? }
18
+ end
8
19
  class Simian < CommandBase
9
- def initialize(builder)
10
- super builder
20
+ def initialize(underlying_builder)
21
+ super underlying_builder
11
22
  end
12
23
  def formatter(formatter)
13
- @builder.append " -formatter=#{@builder.format formatter}"
14
- yield @builder if block_given?
24
+ b.append " -formatter=#{b.format formatter}"
25
+ yield b if block_given?
15
26
  self
16
27
  end
17
28
  def threshold(threshold)
18
- @builder.append " -threshold=#{@builder.format threshold}"
19
- yield @builder if block_given?
29
+ b.append " -threshold=#{b.format threshold}"
30
+ yield b if block_given?
20
31
  self
21
32
  end
22
33
  def language(language)
23
- @builder.append " -language=#{@builder.format language}"
24
- yield @builder if block_given?
34
+ b.append " -language=#{b.format language}"
35
+ yield b if block_given?
25
36
  self
26
37
  end
27
38
  def default_language(language)
28
- @builder.append " -defaultLanguage=#{@builder.format language}"
29
- yield @builder if block_given?
39
+ b.append " -defaultLanguage=#{b.format language}"
40
+ yield b if block_given?
30
41
  self
31
42
  end
32
43
  def fail_on_duplication(bool)
33
- @builder.append " -failOnDuplication=#{@builder.format bool}"
34
- yield @builder if block_given?
44
+ b.append " -failOnDuplication=#{b.format bool}"
45
+ yield b if block_given?
35
46
  self
36
47
  end
37
48
  def report_duplicate_text(bool)
38
- @builder.append " -reportDuplicateText=#{@builder.format bool}"
39
- yield @builder if block_given?
49
+ b.append " -reportDuplicateText=#{b.format bool}"
50
+ yield b if block_given?
40
51
  self
41
52
  end
42
53
  def ignore_blocks(markers)
43
- @builder.append " -ignoreBlocks=#{@builder.format markers}"
44
- yield @builder if block_given?
54
+ b.append " -ignoreBlocks=#{b.format markers}"
55
+ yield b if block_given?
45
56
  self
46
57
  end
47
58
  def ignore_curly_braces(bool)
48
- @builder.append " -ignoreCurlyBraces=#{@builder.format bool}"
49
- yield @builder if block_given?
59
+ b.append " -ignoreCurlyBraces=#{b.format bool}"
60
+ yield b if block_given?
50
61
  self
51
62
  end
52
63
  def ignore_identifiers(bool)
53
- @builder.append " -ignoreIdentifiers=#{@builder.format bool}"
54
- yield @builder if block_given?
64
+ b.append " -ignoreIdentifiers=#{b.format bool}"
65
+ yield b if block_given?
55
66
  self
56
67
  end
57
68
  def ignore_identifier_case(bool)
58
- @builder.append " -ignoreIdentifierCase=#{@builder.format bool}"
59
- yield @builder if block_given?
69
+ b.append " -ignoreIdentifierCase=#{b.format bool}"
70
+ yield b if block_given?
60
71
  self
61
72
  end
62
73
  def ignore_regions(bool)
63
- @builder.append " -ignoreRegions=#{@builder.format bool}"
64
- yield @builder if block_given?
74
+ b.append " -ignoreRegions=#{b.format bool}"
75
+ yield b if block_given?
65
76
  self
66
77
  end
67
78
  def ignore_strings(bool)
68
- @builder.append " -ignoreStrings=#{@builder.format bool}"
69
- yield @builder if block_given?
79
+ b.append " -ignoreStrings=#{b.format bool}"
80
+ yield b if block_given?
70
81
  self
71
82
  end
72
83
  def ignore_string_case(bool)
73
- @builder.append " -ignoreStringCase=#{@builder.format bool}"
74
- yield @builder if block_given?
84
+ b.append " -ignoreStringCase=#{b.format bool}"
85
+ yield b if block_given?
75
86
  self
76
87
  end
77
88
  def ignore_numbers(bool)
78
- @builder.append " -ignoreNumbers=#{@builder.format bool}"
79
- yield @builder if block_given?
89
+ b.append " -ignoreNumbers=#{b.format bool}"
90
+ yield b if block_given?
80
91
  self
81
92
  end
82
93
  def ignore_characters(bool)
83
- @builder.append " -ignoreCharacters=#{@builder.format bool}"
84
- yield @builder if block_given?
94
+ b.append " -ignoreCharacters=#{b.format bool}"
95
+ yield b if block_given?
85
96
  self
86
97
  end
87
98
  def ignore_character_case(bool)
88
- @builder.append " -ignoreCharacterCase=#{@builder.format bool}"
89
- yield @builder if block_given?
99
+ b.append " -ignoreCharacterCase=#{b.format bool}"
100
+ yield b if block_given?
90
101
  self
91
102
  end
92
103
  def ignore_literals(bool)
93
- @builder.append " -ignoreLiterals=#{@builder.format bool}"
94
- yield @builder if block_given?
104
+ b.append " -ignoreLiterals=#{b.format bool}"
105
+ yield b if block_given?
95
106
  self
96
107
  end
97
108
  def ignore_subtype_names(bool)
98
- @builder.append " -ignoreSubtypeNames=#{@builder.format bool}"
99
- yield @builder if block_given?
109
+ b.append " -ignoreSubtypeNames=#{b.format bool}"
110
+ yield b if block_given?
100
111
  self
101
112
  end
102
113
  def ignore_modifiers(bool)
103
- @builder.append " -ignoreModifiers=#{@builder.format bool}"
104
- yield @builder if block_given?
114
+ b.append " -ignoreModifiers=#{b.format bool}"
115
+ yield b if block_given?
105
116
  self
106
117
  end
107
118
  def ignore_variable_names(bool)
108
- @builder.append " -ignoreVariableNames=#{@builder.format bool}"
109
- yield @builder if block_given?
119
+ b.append " -ignoreVariableNames=#{b.format bool}"
120
+ yield b if block_given?
110
121
  self
111
122
  end
112
123
  def balance_parentheses(bool)
113
- @builder.append " -balanceParentheses=#{@builder.format bool}"
114
- yield @builder if block_given?
124
+ b.append " -balanceParentheses=#{b.format bool}"
125
+ yield b if block_given?
115
126
  self
116
127
  end
117
128
  def balance_curly_braces(bool)
118
- @builder.append " -balanceCurlyBraces=#{@builder.format bool}"
119
- yield @builder if block_given?
129
+ b.append " -balanceCurlyBraces=#{b.format bool}"
130
+ yield b if block_given?
120
131
  self
121
132
  end
122
133
  def balance_square_brackets(bool)
123
- @builder.append " -balanceSquareBrackets=#{@builder.format bool}"
124
- yield @builder if block_given?
134
+ b.append " -balanceSquareBrackets=#{b.format bool}"
135
+ yield b if block_given?
125
136
  self
126
137
  end
127
138
  end
128
- def simian
129
- builder = CommandBuilder.new COMMAND_NAME
130
- command = Simian.new builder
131
- yield builder if block_given?
132
- command
133
- end
139
+
134
140
  end
135
141
  end
136
- def simian_23
137
- builder = CommandBuilder.new Simian::V23::COMMAND_NAME
138
- command = Simian::V23::Simian.new builder
139
- yield builder if block_given?
140
- command
141
- end
142
- end
142
+ end
@@ -0,0 +1,17 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../util')
3
+
4
+ module FluentCommandBuilder
5
+ def team_foundation(&block)
6
+ TeamFoundation.create &block
7
+ end
8
+ module TeamFoundation
9
+ COMMAND_NAME = 'tf'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::TeamFoundation::COMMAND_NAME
12
+ c = version_module(TeamFoundation).create b
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ end
17
+ end