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 aspnet_compiler(&block)
6
+ AspnetCompiler.create &block
7
+ end
8
+ module AspnetCompiler
9
+ COMMAND_NAME = 'aspnet_compiler'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::AspnetCompiler::COMMAND_NAME
12
+ c = version_module(AspnetCompiler).create b
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ end
17
+ end
@@ -1,98 +1,98 @@
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 aspnet_compiler_20(target_dir=nil)
6
+ FluentCommandBuilder::AspnetCompiler::V20.create(target_dir) { |b| yield b if block_given? }
7
+ end
5
8
  module AspnetCompiler
6
9
  module V20
7
- COMMAND_NAME = 'aspnet_compiler'
10
+ def self.create(target_dir=nil)
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::AspnetCompiler::COMMAND_NAME
12
+ c = AspnetCompiler.new(b, target_dir)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def aspnet_compiler(target_dir=nil)
17
+ FluentCommandBuilder::AspnetCompiler::V20.create(target_dir) { |b| yield b if block_given? }
18
+ end
8
19
  class AspnetCompiler < CommandBase
9
- def initialize(builder, target_dir=nil)
10
- super builder
11
- @builder.append " #{@builder.format target_dir}" unless target_dir.nil?
20
+ def initialize(underlying_builder, target_dir=nil)
21
+ super underlying_builder
22
+ b.append " #{b.format target_dir}" unless target_dir.nil?
12
23
  end
13
24
  def metabase_path(metabase_path)
14
- @builder.append " -m #{@builder.format metabase_path}"
15
- yield @builder if block_given?
25
+ b.append " -m #{b.format metabase_path}"
26
+ yield b if block_given?
16
27
  self
17
28
  end
18
29
  def virtual_path(virtual_path)
19
- @builder.append " -v #{@builder.format virtual_path}"
20
- yield @builder if block_given?
30
+ b.append " -v #{b.format virtual_path}"
31
+ yield b if block_given?
21
32
  self
22
33
  end
23
34
  def physical_path(physical_path)
24
- @builder.append " -p #{@builder.format physical_path}"
25
- yield @builder if block_given?
35
+ b.append " -p #{b.format physical_path}"
36
+ yield b if block_given?
26
37
  self
27
38
  end
28
39
  def allow_subsequent_updates
29
- @builder.append ' -u'
30
- yield @builder if block_given?
40
+ b.append ' -u'
41
+ yield b if block_given?
31
42
  self
32
43
  end
33
44
  def force_overwrite_files
34
- @builder.append ' -f'
35
- yield @builder if block_given?
45
+ b.append ' -f'
46
+ yield b if block_given?
36
47
  self
37
48
  end
38
49
  def force_debug_output
39
- @builder.append ' -d'
40
- yield @builder if block_given?
50
+ b.append ' -d'
51
+ yield b if block_given?
41
52
  self
42
53
  end
43
54
  def fixed_names
44
- @builder.append ' -fixedNames'
45
- yield @builder if block_given?
55
+ b.append ' -fixedNames'
56
+ yield b if block_given?
46
57
  self
47
58
  end
48
59
  def full_rebuild
49
- @builder.append ' -c'
50
- yield @builder if block_given?
60
+ b.append ' -c'
61
+ yield b if block_given?
51
62
  self
52
63
  end
53
64
  def error_stack
54
- @builder.append ' -errorStack'
55
- yield @builder if block_given?
65
+ b.append ' -errorStack'
66
+ yield b if block_given?
56
67
  self
57
68
  end
58
69
  def no_logo
59
- @builder.append ' -noLogo'
60
- yield @builder if block_given?
70
+ b.append ' -noLogo'
71
+ yield b if block_given?
61
72
  self
62
73
  end
63
74
  def key_file(file)
64
- @builder.append " -keyFile #{@builder.format file}"
65
- yield @builder if block_given?
75
+ b.append " -keyFile #{b.format file}"
76
+ yield b if block_given?
66
77
  self
67
78
  end
68
79
  def key_container(container)
69
- @builder.append " -keyContainer #{@builder.format container}"
70
- yield @builder if block_given?
80
+ b.append " -keyContainer #{b.format container}"
81
+ yield b if block_given?
71
82
  self
72
83
  end
73
84
  def aptca
74
- @builder.append ' -aptca'
75
- yield @builder if block_given?
85
+ b.append ' -aptca'
86
+ yield b if block_given?
76
87
  self
77
88
  end
78
89
  def delay_sign
79
- @builder.append ' -delaySign'
80
- yield @builder if block_given?
90
+ b.append ' -delaySign'
91
+ yield b if block_given?
81
92
  self
82
93
  end
83
94
  end
84
- def aspnet_compiler(target_dir=nil)
85
- builder = CommandBuilder.new COMMAND_NAME
86
- command = AspnetCompiler.new builder, target_dir
87
- yield builder if block_given?
88
- command
89
- end
95
+
90
96
  end
91
97
  end
92
- def aspnet_compiler_20(target_dir=nil)
93
- builder = CommandBuilder.new AspnetCompiler::V20::COMMAND_NAME
94
- command = AspnetCompiler::V20::AspnetCompiler.new builder, target_dir
95
- yield builder if block_given?
96
- command
97
- end
98
- end
98
+ end
@@ -1,98 +1,98 @@
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 aspnet_compiler_40(target_dir=nil)
6
+ FluentCommandBuilder::AspnetCompiler::V40.create(target_dir) { |b| yield b if block_given? }
7
+ end
5
8
  module AspnetCompiler
6
9
  module V40
7
- COMMAND_NAME = 'aspnet_compiler'
10
+ def self.create(target_dir=nil)
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::AspnetCompiler::COMMAND_NAME
12
+ c = AspnetCompiler.new(b, target_dir)
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ def aspnet_compiler(target_dir=nil)
17
+ FluentCommandBuilder::AspnetCompiler::V40.create(target_dir) { |b| yield b if block_given? }
18
+ end
8
19
  class AspnetCompiler < CommandBase
9
- def initialize(builder, target_dir=nil)
10
- super builder
11
- @builder.append " #{@builder.format target_dir}" unless target_dir.nil?
20
+ def initialize(underlying_builder, target_dir=nil)
21
+ super underlying_builder
22
+ b.append " #{b.format target_dir}" unless target_dir.nil?
12
23
  end
13
24
  def metabase_path(metabase_path)
14
- @builder.append " -m #{@builder.format metabase_path}"
15
- yield @builder if block_given?
25
+ b.append " -m #{b.format metabase_path}"
26
+ yield b if block_given?
16
27
  self
17
28
  end
18
29
  def virtual_path(virtual_path)
19
- @builder.append " -v #{@builder.format virtual_path}"
20
- yield @builder if block_given?
30
+ b.append " -v #{b.format virtual_path}"
31
+ yield b if block_given?
21
32
  self
22
33
  end
23
34
  def physical_path(physical_path)
24
- @builder.append " -p #{@builder.format physical_path}"
25
- yield @builder if block_given?
35
+ b.append " -p #{b.format physical_path}"
36
+ yield b if block_given?
26
37
  self
27
38
  end
28
39
  def allow_subsequent_updates
29
- @builder.append ' -u'
30
- yield @builder if block_given?
40
+ b.append ' -u'
41
+ yield b if block_given?
31
42
  self
32
43
  end
33
44
  def force_overwrite_files
34
- @builder.append ' -f'
35
- yield @builder if block_given?
45
+ b.append ' -f'
46
+ yield b if block_given?
36
47
  self
37
48
  end
38
49
  def force_debug_output
39
- @builder.append ' -d'
40
- yield @builder if block_given?
50
+ b.append ' -d'
51
+ yield b if block_given?
41
52
  self
42
53
  end
43
54
  def fixed_names
44
- @builder.append ' -fixedNames'
45
- yield @builder if block_given?
55
+ b.append ' -fixedNames'
56
+ yield b if block_given?
46
57
  self
47
58
  end
48
59
  def full_rebuild
49
- @builder.append ' -c'
50
- yield @builder if block_given?
60
+ b.append ' -c'
61
+ yield b if block_given?
51
62
  self
52
63
  end
53
64
  def error_stack
54
- @builder.append ' -errorStack'
55
- yield @builder if block_given?
65
+ b.append ' -errorStack'
66
+ yield b if block_given?
56
67
  self
57
68
  end
58
69
  def no_logo
59
- @builder.append ' -noLogo'
60
- yield @builder if block_given?
70
+ b.append ' -noLogo'
71
+ yield b if block_given?
61
72
  self
62
73
  end
63
74
  def key_file(file)
64
- @builder.append " -keyFile #{@builder.format file}"
65
- yield @builder if block_given?
75
+ b.append " -keyFile #{b.format file}"
76
+ yield b if block_given?
66
77
  self
67
78
  end
68
79
  def key_container(container)
69
- @builder.append " -keyContainer #{@builder.format container}"
70
- yield @builder if block_given?
80
+ b.append " -keyContainer #{b.format container}"
81
+ yield b if block_given?
71
82
  self
72
83
  end
73
84
  def aptca
74
- @builder.append ' -aptca'
75
- yield @builder if block_given?
85
+ b.append ' -aptca'
86
+ yield b if block_given?
76
87
  self
77
88
  end
78
89
  def delay_sign
79
- @builder.append ' -delaySign'
80
- yield @builder if block_given?
90
+ b.append ' -delaySign'
91
+ yield b if block_given?
81
92
  self
82
93
  end
83
94
  end
84
- def aspnet_compiler(target_dir=nil)
85
- builder = CommandBuilder.new COMMAND_NAME
86
- command = AspnetCompiler.new builder, target_dir
87
- yield builder if block_given?
88
- command
89
- end
95
+
90
96
  end
91
97
  end
92
- def aspnet_compiler_40(target_dir=nil)
93
- builder = CommandBuilder.new AspnetCompiler::V40::COMMAND_NAME
94
- command = AspnetCompiler::V40::AspnetCompiler.new builder, target_dir
95
- yield builder if block_given?
96
- command
97
- end
98
- end
98
+ 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 bundle(&block)
6
+ Bundle.create &block
7
+ end
8
+ module Bundle
9
+ COMMAND_NAME = 'bundle'
10
+ def self.create
11
+ b = UnderlyingBuilder.new FluentCommandBuilder::Bundle::COMMAND_NAME
12
+ c = version_module(Bundle).create b
13
+ yield b if block_given?
14
+ c
15
+ end
16
+ end
17
+ end