fluent_command_builder 0.1.5 → 0.1.6

This diff has not been reviewed by any users.
Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. data/lib/fluent_command_builder.rb +2 -1
  2. data/lib/fluent_command_builder/command_builder.rb +1 -1
  3. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +31 -58
  4. data/lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb +31 -58
  5. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +31 -58
  6. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +38 -76
  7. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +81 -155
  8. data/lib/fluent_command_builder/command_builders/installutil_11.rb +18 -35
  9. data/lib/fluent_command_builder/command_builders/installutil_20.rb +21 -38
  10. data/lib/fluent_command_builder/command_builders/installutil_35.rb +21 -38
  11. data/lib/fluent_command_builder/command_builders/installutil_40.rb +24 -41
  12. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +24 -48
  13. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +24 -48
  14. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +32 -64
  15. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +37 -156
  16. data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +39 -78
  17. data/lib/fluent_command_builder/command_builders/mstest_2005.rb +25 -50
  18. data/lib/fluent_command_builder/command_builders/mstest_2008.rb +26 -52
  19. data/lib/fluent_command_builder/command_builders/mstest_2010.rb +29 -58
  20. data/lib/fluent_command_builder/command_builders/netsh_2008.rb +105 -204
  21. data/lib/fluent_command_builder/command_builders/nunit_25.rb +103 -0
  22. data/lib/fluent_command_builder/command_builders/rake_09.rb +32 -64
  23. data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +428 -0
  24. data/lib/fluent_command_builder/command_builders/simian_23.rb +32 -64
  25. data/lib/fluent_command_builder/command_builders/tf_2010.rb +502 -969
  26. data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +483 -930
  27. metadata +4 -3
  28. data/lib/fluent_command_builder/command_builders/nunit_console_25.rb +0 -137
@@ -16,8 +16,9 @@ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/comma
16
16
  require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/mstest_2008.rb')
17
17
  require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/mstest_2010.rb')
18
18
  require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/netsh_2008.rb')
19
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/nunit_console_25.rb')
19
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/nunit_25.rb')
20
20
  require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/rake_09.rb')
21
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/sevenzip_92.rb')
21
22
  require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/simian_23.rb')
22
23
  require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/tf_2010.rb')
23
24
  require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/tf_tee_2010.rb')
@@ -19,7 +19,7 @@ module FluentCommandBuilder
19
19
  end
20
20
 
21
21
  def append value
22
- @command << ' ' + value
22
+ @command << value
23
23
  end
24
24
 
25
25
  def to_s
@@ -4,104 +4,77 @@ module FluentCommandBuilder
4
4
  module AspnetCompiler
5
5
  module V20
6
6
  class AspnetCompiler
7
- def initialize command=nil
8
- @b = CommandBuilder.new command
9
- @b.append 'aspnet_compiler'
10
- self
11
- end
12
-
13
- def target_dir target_dir
14
- @b.append "#{@b.format target_dir}"
15
- self
7
+ def initialize builder, target_dir=nil
8
+ @builder = builder
9
+ @builder.append 'aspnet_compiler'
10
+ @builder.append " #{@builder.format target_dir}" unless target_dir.nil?
16
11
  end
17
-
18
- def m metabase_path
19
- @b.append "-m #{@b.format metabase_path}"
12
+ def metabase_path metabase_path
13
+ @builder.append " -m #{@builder.format metabase_path}"
20
14
  self
21
15
  end
22
-
23
- def v virtual_path
24
- @b.append "-v #{@b.format virtual_path}"
16
+ def virtual_path virtual_path
17
+ @builder.append " -v #{@builder.format virtual_path}"
25
18
  self
26
19
  end
27
-
28
- def p physical_path
29
- @b.append "-p #{@b.format physical_path}"
20
+ def physical_path physical_path
21
+ @builder.append " -p #{@builder.format physical_path}"
30
22
  self
31
23
  end
32
-
33
- def u
34
- @b.append '-u'
24
+ def allow_subsequent_updates
25
+ @builder.append ' -u'
35
26
  self
36
27
  end
37
-
38
- def f
39
- @b.append '-f'
28
+ def force_overwrite_files
29
+ @builder.append ' -f'
40
30
  self
41
31
  end
42
-
43
- def d
44
- @b.append '-d'
32
+ def force_debug_output
33
+ @builder.append ' -d'
45
34
  self
46
35
  end
47
-
48
36
  def fixed_names
49
- @b.append '-fixedNames'
37
+ @builder.append ' -fixedNames'
50
38
  self
51
39
  end
52
-
53
- def c
54
- @b.append '-c'
40
+ def full_rebuild
41
+ @builder.append ' -c'
55
42
  self
56
43
  end
57
-
58
44
  def error_stack
59
- @b.append '-errorStack'
45
+ @builder.append ' -errorStack'
60
46
  self
61
47
  end
62
-
63
48
  def no_logo
64
- @b.append '-noLogo'
49
+ @builder.append ' -noLogo'
65
50
  self
66
51
  end
67
-
68
52
  def key_file file
69
- @b.append "-keyFile #{@b.format file}"
53
+ @builder.append " -keyFile #{@builder.format file}"
70
54
  self
71
55
  end
72
-
73
56
  def key_container container
74
- @b.append "-keyContainer #{@b.format container}"
57
+ @builder.append " -keyContainer #{@builder.format container}"
75
58
  self
76
59
  end
77
-
78
60
  def aptca
79
- @b.append '-aptca'
61
+ @builder.append ' -aptca'
80
62
  self
81
63
  end
82
-
83
64
  def delay_sign
84
- @b.append '-delaySign'
65
+ @builder.append ' -delaySign'
85
66
  self
86
67
  end
87
-
88
- def to_s
89
- @b.to_s
68
+ def to_s
69
+ @builder.to_s
90
70
  end
91
-
92
71
  end
93
-
94
- def aspnet_compiler
95
- AspnetCompiler.new
72
+ def aspnet_compiler target_dir=nil
73
+ AspnetCompiler.new CommandBuilder.new, target_dir
96
74
  end
97
-
98
75
  end
99
-
100
76
  end
101
-
102
- def aspnet_compiler_20
103
- AspnetCompiler::V20::AspnetCompiler.new
77
+ def aspnet_compiler_20 target_dir=nil
78
+ AspnetCompiler::V20::AspnetCompiler.new CommandBuilder.new, target_dir
104
79
  end
105
-
106
80
  end
107
-
@@ -4,104 +4,77 @@ module FluentCommandBuilder
4
4
  module AspnetCompiler
5
5
  module V35
6
6
  class AspnetCompiler
7
- def initialize command=nil
8
- @b = CommandBuilder.new command
9
- @b.append 'aspnet_compiler'
10
- self
11
- end
12
-
13
- def target_dir target_dir
14
- @b.append "#{@b.format target_dir}"
15
- self
7
+ def initialize builder, target_dir=nil
8
+ @builder = builder
9
+ @builder.append 'aspnet_compiler'
10
+ @builder.append " #{@builder.format target_dir}" unless target_dir.nil?
16
11
  end
17
-
18
- def m metabase_path
19
- @b.append "-m #{@b.format metabase_path}"
12
+ def metabase_path metabase_path
13
+ @builder.append " -m #{@builder.format metabase_path}"
20
14
  self
21
15
  end
22
-
23
- def v virtual_path
24
- @b.append "-v #{@b.format virtual_path}"
16
+ def virtual_path virtual_path
17
+ @builder.append " -v #{@builder.format virtual_path}"
25
18
  self
26
19
  end
27
-
28
- def p physical_path
29
- @b.append "-p #{@b.format physical_path}"
20
+ def physical_path physical_path
21
+ @builder.append " -p #{@builder.format physical_path}"
30
22
  self
31
23
  end
32
-
33
- def u
34
- @b.append '-u'
24
+ def allow_subsequent_updates
25
+ @builder.append ' -u'
35
26
  self
36
27
  end
37
-
38
- def f
39
- @b.append '-f'
28
+ def force_overwrite_files
29
+ @builder.append ' -f'
40
30
  self
41
31
  end
42
-
43
- def d
44
- @b.append '-d'
32
+ def force_debug_output
33
+ @builder.append ' -d'
45
34
  self
46
35
  end
47
-
48
36
  def fixed_names
49
- @b.append '-fixedNames'
37
+ @builder.append ' -fixedNames'
50
38
  self
51
39
  end
52
-
53
- def c
54
- @b.append '-c'
40
+ def full_rebuild
41
+ @builder.append ' -c'
55
42
  self
56
43
  end
57
-
58
44
  def error_stack
59
- @b.append '-errorStack'
45
+ @builder.append ' -errorStack'
60
46
  self
61
47
  end
62
-
63
48
  def no_logo
64
- @b.append '-noLogo'
49
+ @builder.append ' -noLogo'
65
50
  self
66
51
  end
67
-
68
52
  def key_file file
69
- @b.append "-keyFile #{@b.format file}"
53
+ @builder.append " -keyFile #{@builder.format file}"
70
54
  self
71
55
  end
72
-
73
56
  def key_container container
74
- @b.append "-keyContainer #{@b.format container}"
57
+ @builder.append " -keyContainer #{@builder.format container}"
75
58
  self
76
59
  end
77
-
78
60
  def aptca
79
- @b.append '-aptca'
61
+ @builder.append ' -aptca'
80
62
  self
81
63
  end
82
-
83
64
  def delay_sign
84
- @b.append '-delaySign'
65
+ @builder.append ' -delaySign'
85
66
  self
86
67
  end
87
-
88
- def to_s
89
- @b.to_s
68
+ def to_s
69
+ @builder.to_s
90
70
  end
91
-
92
71
  end
93
-
94
- def aspnet_compiler
95
- AspnetCompiler.new
72
+ def aspnet_compiler target_dir=nil
73
+ AspnetCompiler.new CommandBuilder.new, target_dir
96
74
  end
97
-
98
75
  end
99
-
100
76
  end
101
-
102
- def aspnet_compiler_35
103
- AspnetCompiler::V35::AspnetCompiler.new
77
+ def aspnet_compiler_35 target_dir=nil
78
+ AspnetCompiler::V35::AspnetCompiler.new CommandBuilder.new, target_dir
104
79
  end
105
-
106
80
  end
107
-
@@ -4,104 +4,77 @@ module FluentCommandBuilder
4
4
  module AspnetCompiler
5
5
  module V40
6
6
  class AspnetCompiler
7
- def initialize command=nil
8
- @b = CommandBuilder.new command
9
- @b.append 'aspnet_compiler'
10
- self
11
- end
12
-
13
- def target_dir target_dir
14
- @b.append "#{@b.format target_dir}"
15
- self
7
+ def initialize builder, target_dir=nil
8
+ @builder = builder
9
+ @builder.append 'aspnet_compiler'
10
+ @builder.append " #{@builder.format target_dir}" unless target_dir.nil?
16
11
  end
17
-
18
- def m metabase_path
19
- @b.append "-m #{@b.format metabase_path}"
12
+ def metabase_path metabase_path
13
+ @builder.append " -m #{@builder.format metabase_path}"
20
14
  self
21
15
  end
22
-
23
- def v virtual_path
24
- @b.append "-v #{@b.format virtual_path}"
16
+ def virtual_path virtual_path
17
+ @builder.append " -v #{@builder.format virtual_path}"
25
18
  self
26
19
  end
27
-
28
- def p physical_path
29
- @b.append "-p #{@b.format physical_path}"
20
+ def physical_path physical_path
21
+ @builder.append " -p #{@builder.format physical_path}"
30
22
  self
31
23
  end
32
-
33
- def u
34
- @b.append '-u'
24
+ def allow_subsequent_updates
25
+ @builder.append ' -u'
35
26
  self
36
27
  end
37
-
38
- def f
39
- @b.append '-f'
28
+ def force_overwrite_files
29
+ @builder.append ' -f'
40
30
  self
41
31
  end
42
-
43
- def d
44
- @b.append '-d'
32
+ def force_debug_output
33
+ @builder.append ' -d'
45
34
  self
46
35
  end
47
-
48
36
  def fixed_names
49
- @b.append '-fixedNames'
37
+ @builder.append ' -fixedNames'
50
38
  self
51
39
  end
52
-
53
- def c
54
- @b.append '-c'
40
+ def full_rebuild
41
+ @builder.append ' -c'
55
42
  self
56
43
  end
57
-
58
44
  def error_stack
59
- @b.append '-errorStack'
45
+ @builder.append ' -errorStack'
60
46
  self
61
47
  end
62
-
63
48
  def no_logo
64
- @b.append '-noLogo'
49
+ @builder.append ' -noLogo'
65
50
  self
66
51
  end
67
-
68
52
  def key_file file
69
- @b.append "-keyFile #{@b.format file}"
53
+ @builder.append " -keyFile #{@builder.format file}"
70
54
  self
71
55
  end
72
-
73
56
  def key_container container
74
- @b.append "-keyContainer #{@b.format container}"
57
+ @builder.append " -keyContainer #{@builder.format container}"
75
58
  self
76
59
  end
77
-
78
60
  def aptca
79
- @b.append '-aptca'
61
+ @builder.append ' -aptca'
80
62
  self
81
63
  end
82
-
83
64
  def delay_sign
84
- @b.append '-delaySign'
65
+ @builder.append ' -delaySign'
85
66
  self
86
67
  end
87
-
88
- def to_s
89
- @b.to_s
68
+ def to_s
69
+ @builder.to_s
90
70
  end
91
-
92
71
  end
93
-
94
- def aspnet_compiler
95
- AspnetCompiler.new
72
+ def aspnet_compiler target_dir=nil
73
+ AspnetCompiler.new CommandBuilder.new, target_dir
96
74
  end
97
-
98
75
  end
99
-
100
76
  end
101
-
102
- def aspnet_compiler_40
103
- AspnetCompiler::V40::AspnetCompiler.new
77
+ def aspnet_compiler_40 target_dir=nil
78
+ AspnetCompiler::V40::AspnetCompiler.new CommandBuilder.new, target_dir
104
79
  end
105
-
106
80
  end
107
-
@@ -4,174 +4,136 @@ module FluentCommandBuilder
4
4
  module Cucumber
5
5
  module V11
6
6
  class Cucumber
7
- def initialize command=nil
8
- @b = CommandBuilder.new command
9
- @b.append 'cucumber'
10
- self
7
+ def initialize builder
8
+ @builder = builder
9
+ @builder.append 'cucumber'
11
10
  end
12
-
13
11
  def require library
14
- @b.append "--require #{@b.format library}"
12
+ @builder.append " --require #{@builder.format library}"
15
13
  self
16
14
  end
17
-
18
15
  def i18n lang
19
- @b.append "--i18n #{@b.format lang}"
16
+ @builder.append " --i18n #{@builder.format lang}"
20
17
  self
21
18
  end
22
-
23
19
  def format format
24
- @b.append "--format #{@b.format format}"
20
+ @builder.append " --format #{@builder.format format}"
25
21
  self
26
22
  end
27
-
28
23
  def out file
29
- @b.append "--out #{@b.format file}"
24
+ @builder.append " --out #{@builder.format file}"
30
25
  self
31
26
  end
32
-
33
27
  def tags tag_expression
34
- @b.append "--tags #{@b.format tag_expression, ','}"
28
+ @builder.append " --tags #{@builder.format tag_expression, ','}"
35
29
  self
36
30
  end
37
-
38
31
  def name name
39
- @b.append "--name #{@b.format name}"
32
+ @builder.append " --name #{@builder.format name}"
40
33
  self
41
34
  end
42
-
43
35
  def exclude pattern
44
- @b.append "--exclude #{@b.format pattern}"
36
+ @builder.append " --exclude #{@builder.format pattern}"
45
37
  self
46
38
  end
47
-
48
39
  def profile profile
49
- @b.append "--profile #{@b.format profile}"
40
+ @builder.append " --profile #{@builder.format profile}"
50
41
  self
51
42
  end
52
-
53
43
  def no_profile
54
- @b.append '--no-profile'
44
+ @builder.append ' --no-profile'
55
45
  self
56
46
  end
57
-
58
47
  def color
59
- @b.append '--color'
48
+ @builder.append ' --color'
60
49
  self
61
50
  end
62
-
63
51
  def no_color
64
- @b.append '--no-color'
52
+ @builder.append ' --no-color'
65
53
  self
66
54
  end
67
-
68
55
  def dry_run
69
- @b.append '--dry-run'
56
+ @builder.append ' --dry-run'
70
57
  self
71
58
  end
72
-
73
59
  def autoformat dir
74
- @b.append "--autoformat #{@b.format dir}"
60
+ @builder.append " --autoformat #{@builder.format dir}"
75
61
  self
76
62
  end
77
-
78
63
  def no_multiline
79
- @b.append '--no-multiline'
64
+ @builder.append ' --no-multiline'
80
65
  self
81
66
  end
82
-
83
67
  def no_source
84
- @b.append '--no-source'
68
+ @builder.append ' --no-source'
85
69
  self
86
70
  end
87
-
88
71
  def no_snippets
89
- @b.append '--no-snippets'
72
+ @builder.append ' --no-snippets'
90
73
  self
91
74
  end
92
-
93
75
  def quiet
94
- @b.append '--quiet'
76
+ @builder.append ' --quiet'
95
77
  self
96
78
  end
97
-
98
79
  def backtrace
99
- @b.append '--backtrace'
80
+ @builder.append ' --backtrace'
100
81
  self
101
82
  end
102
-
103
83
  def strict
104
- @b.append '--strict'
84
+ @builder.append ' --strict'
105
85
  self
106
86
  end
107
-
108
87
  def wip
109
- @b.append '--wip'
88
+ @builder.append ' --wip'
110
89
  self
111
90
  end
112
-
113
91
  def verbose
114
- @b.append '--verbose'
92
+ @builder.append ' --verbose'
115
93
  self
116
94
  end
117
-
118
95
  def guess
119
- @b.append '--guess'
96
+ @builder.append ' --guess'
120
97
  self
121
98
  end
122
-
123
99
  def lines lines
124
- @b.append "--lines #{@b.format lines}"
100
+ @builder.append " --lines #{@builder.format lines}"
125
101
  self
126
102
  end
127
-
128
103
  def expand
129
- @b.append '--expand'
104
+ @builder.append ' --expand'
130
105
  self
131
106
  end
132
-
133
107
  def drb
134
- @b.append '--drb'
108
+ @builder.append ' --drb'
135
109
  self
136
110
  end
137
-
138
111
  def port port
139
- @b.append "--port #{@b.format port}"
112
+ @builder.append " --port #{@builder.format port}"
140
113
  self
141
114
  end
142
-
143
115
  def dotcucumber dir
144
- @b.append "--dotcucumber #{@b.format dir}"
116
+ @builder.append " --dotcucumber #{@builder.format dir}"
145
117
  self
146
118
  end
147
-
148
119
  def version
149
- @b.append '--version'
120
+ @builder.append ' --version'
150
121
  self
151
122
  end
152
-
153
123
  def help
154
- @b.append '--help'
124
+ @builder.append ' --help'
155
125
  self
156
126
  end
157
-
158
- def to_s
159
- @b.to_s
127
+ def to_s
128
+ @builder.to_s
160
129
  end
161
-
162
130
  end
163
-
164
- def cucumber
165
- Cucumber.new
131
+ def cucumber
132
+ Cucumber.new CommandBuilder.new
166
133
  end
167
-
168
134
  end
169
-
170
135
  end
171
-
172
- def cucumber_11
173
- Cucumber::V11::Cucumber.new
136
+ def cucumber_11
137
+ Cucumber::V11::Cucumber.new CommandBuilder.new
174
138
  end
175
-
176
139
  end
177
-