fluent_command_builder 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,15 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/aspnet_compiler40.rb')
2
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/cucumber11.rb')
3
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/dotcover11.rb')
4
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/installutil40.rb')
5
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msbuild40.rb')
6
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msdeploy40.rb')
7
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/netsh2008.rb')
8
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/nunit25.rb')
9
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/rake09.rb')
10
- require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/tf2010.rb')
1
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/aspnet_compiler_20.rb')
2
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/aspnet_compiler_35.rb')
3
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/aspnet_compiler_40.rb')
4
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/cucumber_11.rb')
5
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/dotcover_11.rb')
6
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/installutil_40.rb')
7
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msbuild_20.rb')
8
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msbuild_30.rb')
9
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msbuild_35.rb')
10
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msbuild_40.rb')
11
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/msdeploy_40.rb')
12
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/netsh_2008.rb')
13
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/nunit_console_25.rb')
14
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/rake_09.rb')
15
+ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/tf_2010.rb')
@@ -0,0 +1,107 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
2
+
3
+ module FluentCommandBuilder
4
+ module AspnetCompiler
5
+ module V20
6
+ class AspnetCompiler
7
+ def initialize command=nil
8
+ @builder = CommandBuilder.new command
9
+ @builder.append 'aspnet_compiler'
10
+ self
11
+ end
12
+
13
+ def target_dir target_dir
14
+ @builder.append "#{target_dir}"
15
+ self
16
+ end
17
+
18
+ def m metabase_path
19
+ @builder.append "-m #{metabase_path}"
20
+ self
21
+ end
22
+
23
+ def v virtual_path
24
+ @builder.append "-v #{virtual_path}"
25
+ self
26
+ end
27
+
28
+ def p physical_path
29
+ @builder.append "-p #{physical_path}"
30
+ self
31
+ end
32
+
33
+ def u
34
+ @builder.append "-u"
35
+ self
36
+ end
37
+
38
+ def f
39
+ @builder.append "-f"
40
+ self
41
+ end
42
+
43
+ def d
44
+ @builder.append "-d"
45
+ self
46
+ end
47
+
48
+ def fixed_names
49
+ @builder.append "-fixedNames"
50
+ self
51
+ end
52
+
53
+ def c
54
+ @builder.append "-c"
55
+ self
56
+ end
57
+
58
+ def error_stack
59
+ @builder.append "-errorStack"
60
+ self
61
+ end
62
+
63
+ def no_logo
64
+ @builder.append "-noLogo"
65
+ self
66
+ end
67
+
68
+ def key_file file
69
+ @builder.append "-keyFile #{file}"
70
+ self
71
+ end
72
+
73
+ def key_container container
74
+ @builder.append "-keyContainer #{container}"
75
+ self
76
+ end
77
+
78
+ def aptca
79
+ @builder.append "-aptca"
80
+ self
81
+ end
82
+
83
+ def delay_sign
84
+ @builder.append "-delaySign"
85
+ self
86
+ end
87
+
88
+ def to_s
89
+ @builder.to_s
90
+ end
91
+
92
+ end
93
+
94
+ def aspnet_compiler
95
+ AspnetCompiler.new
96
+ end
97
+
98
+ end
99
+
100
+ end
101
+
102
+ def aspnet_compiler20
103
+ AspnetCompiler::V20::AspnetCompiler.new
104
+ end
105
+
106
+ end
107
+
@@ -0,0 +1,107 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
2
+
3
+ module FluentCommandBuilder
4
+ module AspnetCompiler
5
+ module V35
6
+ class AspnetCompiler
7
+ def initialize command=nil
8
+ @builder = CommandBuilder.new command
9
+ @builder.append 'aspnet_compiler'
10
+ self
11
+ end
12
+
13
+ def target_dir target_dir
14
+ @builder.append "#{target_dir}"
15
+ self
16
+ end
17
+
18
+ def m metabase_path
19
+ @builder.append "-m #{metabase_path}"
20
+ self
21
+ end
22
+
23
+ def v virtual_path
24
+ @builder.append "-v #{virtual_path}"
25
+ self
26
+ end
27
+
28
+ def p physical_path
29
+ @builder.append "-p #{physical_path}"
30
+ self
31
+ end
32
+
33
+ def u
34
+ @builder.append "-u"
35
+ self
36
+ end
37
+
38
+ def f
39
+ @builder.append "-f"
40
+ self
41
+ end
42
+
43
+ def d
44
+ @builder.append "-d"
45
+ self
46
+ end
47
+
48
+ def fixed_names
49
+ @builder.append "-fixedNames"
50
+ self
51
+ end
52
+
53
+ def c
54
+ @builder.append "-c"
55
+ self
56
+ end
57
+
58
+ def error_stack
59
+ @builder.append "-errorStack"
60
+ self
61
+ end
62
+
63
+ def no_logo
64
+ @builder.append "-noLogo"
65
+ self
66
+ end
67
+
68
+ def key_file file
69
+ @builder.append "-keyFile #{file}"
70
+ self
71
+ end
72
+
73
+ def key_container container
74
+ @builder.append "-keyContainer #{container}"
75
+ self
76
+ end
77
+
78
+ def aptca
79
+ @builder.append "-aptca"
80
+ self
81
+ end
82
+
83
+ def delay_sign
84
+ @builder.append "-delaySign"
85
+ self
86
+ end
87
+
88
+ def to_s
89
+ @builder.to_s
90
+ end
91
+
92
+ end
93
+
94
+ def aspnet_compiler
95
+ AspnetCompiler.new
96
+ end
97
+
98
+ end
99
+
100
+ end
101
+
102
+ def aspnet_compiler35
103
+ AspnetCompiler::V35::AspnetCompiler.new
104
+ end
105
+
106
+ end
107
+
@@ -91,6 +91,10 @@ module FluentCommandBuilder
91
91
 
92
92
  end
93
93
 
94
+ def aspnet_compiler
95
+ AspnetCompiler.new
96
+ end
97
+
94
98
  end
95
99
 
96
100
  end
@@ -161,6 +161,10 @@ module FluentCommandBuilder
161
161
 
162
162
  end
163
163
 
164
+ def cucumber
165
+ Cucumber.new
166
+ end
167
+
164
168
  end
165
169
 
166
170
  end
@@ -285,6 +285,10 @@ module FluentCommandBuilder
285
285
 
286
286
  end
287
287
 
288
+ def dotcover
289
+ DotCover.new
290
+ end
291
+
288
292
  end
289
293
 
290
294
  end
@@ -41,6 +41,10 @@ module FluentCommandBuilder
41
41
 
42
42
  end
43
43
 
44
+ def installutil
45
+ InstallUtil.new
46
+ end
47
+
44
48
  end
45
49
 
46
50
  end
@@ -0,0 +1,97 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
2
+
3
+ module FluentCommandBuilder
4
+ module MSBuild
5
+ module V20
6
+ class MSBuild
7
+ def initialize command=nil
8
+ @builder = CommandBuilder.new command
9
+ @builder.append 'MSBuild'
10
+ self
11
+ end
12
+
13
+ def project_file project_file
14
+ @builder.append "#{project_file}"
15
+ self
16
+ end
17
+
18
+ def help
19
+ @builder.append "/help"
20
+ self
21
+ end
22
+
23
+ def no_logo
24
+ @builder.append "/noLogo"
25
+ self
26
+ end
27
+
28
+ def version
29
+ @builder.append "/version"
30
+ self
31
+ end
32
+
33
+ def file file
34
+ @builder.append "@#{file}"
35
+ self
36
+ end
37
+
38
+ def no_auto_response
39
+ @builder.append "/noAutoResponse"
40
+ self
41
+ end
42
+
43
+ def target target
44
+ @builder.format(target, ';') { |v| @builder.append "/target:#{v}" }
45
+ self
46
+ end
47
+
48
+ def property property
49
+ @builder.format(property, ';', '=') { |v| @builder.append "/property:#{v}" }
50
+ self
51
+ end
52
+
53
+ def logger logger
54
+ @builder.append "/logger:#{logger}"
55
+ self
56
+ end
57
+
58
+ def console_logger_parameters parameters
59
+ @builder.append "/consoleLoggerParameters:#{parameters}"
60
+ self
61
+ end
62
+
63
+ def verbosity level
64
+ @builder.append "/verbosity:#{level}"
65
+ self
66
+ end
67
+
68
+ def no_console_logger
69
+ @builder.append "/noConsoleLogger"
70
+ self
71
+ end
72
+
73
+ def validate schema
74
+ @builder.append "/validate:#{schema}"
75
+ self
76
+ end
77
+
78
+ def to_s
79
+ @builder.to_s
80
+ end
81
+
82
+ end
83
+
84
+ def msbuild
85
+ MSBuild.new
86
+ end
87
+
88
+ end
89
+
90
+ end
91
+
92
+ def msbuild20
93
+ MSBuild::V20::MSBuild.new
94
+ end
95
+
96
+ end
97
+
@@ -0,0 +1,97 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
2
+
3
+ module FluentCommandBuilder
4
+ module MSBuild
5
+ module V30
6
+ class MSBuild
7
+ def initialize command=nil
8
+ @builder = CommandBuilder.new command
9
+ @builder.append 'MSBuild'
10
+ self
11
+ end
12
+
13
+ def project_file project_file
14
+ @builder.append "#{project_file}"
15
+ self
16
+ end
17
+
18
+ def help
19
+ @builder.append "/help"
20
+ self
21
+ end
22
+
23
+ def no_logo
24
+ @builder.append "/noLogo"
25
+ self
26
+ end
27
+
28
+ def version
29
+ @builder.append "/version"
30
+ self
31
+ end
32
+
33
+ def file file
34
+ @builder.append "@#{file}"
35
+ self
36
+ end
37
+
38
+ def no_auto_response
39
+ @builder.append "/noAutoResponse"
40
+ self
41
+ end
42
+
43
+ def target target
44
+ @builder.format(target, ';') { |v| @builder.append "/target:#{v}" }
45
+ self
46
+ end
47
+
48
+ def property property
49
+ @builder.format(property, ';', '=') { |v| @builder.append "/property:#{v}" }
50
+ self
51
+ end
52
+
53
+ def logger logger
54
+ @builder.append "/logger:#{logger}"
55
+ self
56
+ end
57
+
58
+ def console_logger_parameters parameters
59
+ @builder.append "/consoleLoggerParameters:#{parameters}"
60
+ self
61
+ end
62
+
63
+ def verbosity level
64
+ @builder.append "/verbosity:#{level}"
65
+ self
66
+ end
67
+
68
+ def no_console_logger
69
+ @builder.append "/noConsoleLogger"
70
+ self
71
+ end
72
+
73
+ def validate schema
74
+ @builder.append "/validate:#{schema}"
75
+ self
76
+ end
77
+
78
+ def to_s
79
+ @builder.to_s
80
+ end
81
+
82
+ end
83
+
84
+ def msbuild
85
+ MSBuild.new
86
+ end
87
+
88
+ end
89
+
90
+ end
91
+
92
+ def msbuild30
93
+ MSBuild::V30::MSBuild.new
94
+ end
95
+
96
+ end
97
+
@@ -0,0 +1,137 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
2
+
3
+ module FluentCommandBuilder
4
+ module MSBuild
5
+ module V35
6
+ class MSBuild
7
+ def initialize command=nil
8
+ @builder = CommandBuilder.new command
9
+ @builder.append 'MSBuild'
10
+ self
11
+ end
12
+
13
+ def project_file project_file
14
+ @builder.append "#{project_file}"
15
+ self
16
+ end
17
+
18
+ def help
19
+ @builder.append "/help"
20
+ self
21
+ end
22
+
23
+ def no_logo
24
+ @builder.append "/noLogo"
25
+ self
26
+ end
27
+
28
+ def version
29
+ @builder.append "/version"
30
+ self
31
+ end
32
+
33
+ def file file
34
+ @builder.append "@#{file}"
35
+ self
36
+ end
37
+
38
+ def no_auto_response
39
+ @builder.append "/noAutoResponse"
40
+ self
41
+ end
42
+
43
+ def target target
44
+ @builder.format(target, ';') { |v| @builder.append "/target:#{v}" }
45
+ self
46
+ end
47
+
48
+ def property property
49
+ @builder.format(property, ';', '=') { |v| @builder.append "/property:#{v}" }
50
+ self
51
+ end
52
+
53
+ def logger logger
54
+ @builder.append "/logger:#{logger}"
55
+ self
56
+ end
57
+
58
+ def distributed_logger logger
59
+ @builder.append "/distributedLogger:#{logger}"
60
+ self
61
+ end
62
+
63
+ def console_logger_parameters parameters
64
+ @builder.append "/consoleLoggerParameters:#{parameters}"
65
+ self
66
+ end
67
+
68
+ def verbosity level
69
+ @builder.append "/verbosity:#{level}"
70
+ self
71
+ end
72
+
73
+ def no_console_logger
74
+ @builder.append "/noConsoleLogger"
75
+ self
76
+ end
77
+
78
+ def validate schema
79
+ @builder.append "/validate:#{schema}"
80
+ self
81
+ end
82
+
83
+ def max_cpu_count number
84
+ @builder.append "/maxCpuCount:#{number}"
85
+ self
86
+ end
87
+
88
+ def ignore_project_extensions extensions
89
+ @builder.format(extensions, ';') { |v| @builder.append "/ignoreProjectExtensions:#{v}" }
90
+ self
91
+ end
92
+
93
+ def file_logger
94
+ @builder.append "/fileLogger"
95
+ self
96
+ end
97
+
98
+ def distributed_file_logger
99
+ @builder.append "/distributedFileLogger"
100
+ self
101
+ end
102
+
103
+ def file_logger_parameters parameters
104
+ @builder.format(parameters, ';', '=') { |v| @builder.append "/fileLoggerParameters:#{v}" }
105
+ self
106
+ end
107
+
108
+ def tools_version version
109
+ @builder.append "/toolsVersion:#{version}"
110
+ self
111
+ end
112
+
113
+ def node_reuse parameters
114
+ @builder.append "/nodeReuse:#{parameters}"
115
+ self
116
+ end
117
+
118
+ def to_s
119
+ @builder.to_s
120
+ end
121
+
122
+ end
123
+
124
+ def msbuild
125
+ MSBuild.new
126
+ end
127
+
128
+ end
129
+
130
+ end
131
+
132
+ def msbuild35
133
+ MSBuild::V35::MSBuild.new
134
+ end
135
+
136
+ end
137
+
@@ -211,6 +211,10 @@ module FluentCommandBuilder
211
211
 
212
212
  end
213
213
 
214
+ def msbuild
215
+ MSBuild.new
216
+ end
217
+
214
218
  end
215
219
 
216
220
  end
@@ -166,6 +166,10 @@ module FluentCommandBuilder
166
166
 
167
167
  end
168
168
 
169
+ def msdeploy
170
+ MSDeploy.new
171
+ end
172
+
169
173
  end
170
174
 
171
175
  end
@@ -430,6 +430,10 @@ module FluentCommandBuilder
430
430
 
431
431
  end
432
432
 
433
+ def netsh
434
+ Netsh.new
435
+ end
436
+
433
437
  end
434
438
 
435
439
  end
@@ -121,6 +121,10 @@ module FluentCommandBuilder
121
121
 
122
122
  end
123
123
 
124
+ def nunit_console
125
+ NunitConsole.new
126
+ end
127
+
124
128
  end
125
129
 
126
130
  end
@@ -131,6 +131,10 @@ module FluentCommandBuilder
131
131
 
132
132
  end
133
133
 
134
+ def rake
135
+ Rake.new
136
+ end
137
+
134
138
  end
135
139
 
136
140
  end
@@ -2043,6 +2043,10 @@ module FluentCommandBuilder
2043
2043
 
2044
2044
  end
2045
2045
 
2046
+ def tf
2047
+ Tf.new
2048
+ end
2049
+
2046
2050
  end
2047
2051
 
2048
2052
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent_command_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,16 +18,21 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/fluent_command_builder/command_builder.rb
21
- - lib/fluent_command_builder/command_builders/aspnet_compiler40.rb
22
- - lib/fluent_command_builder/command_builders/cucumber11.rb
23
- - lib/fluent_command_builder/command_builders/dotcover11.rb
24
- - lib/fluent_command_builder/command_builders/installutil40.rb
25
- - lib/fluent_command_builder/command_builders/msbuild40.rb
26
- - lib/fluent_command_builder/command_builders/msdeploy40.rb
27
- - lib/fluent_command_builder/command_builders/netsh2008.rb
28
- - lib/fluent_command_builder/command_builders/nunit25.rb
29
- - lib/fluent_command_builder/command_builders/rake09.rb
30
- - lib/fluent_command_builder/command_builders/tf2010.rb
21
+ - lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb
22
+ - lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb
23
+ - lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb
24
+ - lib/fluent_command_builder/command_builders/cucumber_11.rb
25
+ - lib/fluent_command_builder/command_builders/dotcover_11.rb
26
+ - lib/fluent_command_builder/command_builders/installutil_40.rb
27
+ - lib/fluent_command_builder/command_builders/msbuild_20.rb
28
+ - lib/fluent_command_builder/command_builders/msbuild_30.rb
29
+ - lib/fluent_command_builder/command_builders/msbuild_35.rb
30
+ - lib/fluent_command_builder/command_builders/msbuild_40.rb
31
+ - lib/fluent_command_builder/command_builders/msdeploy_40.rb
32
+ - lib/fluent_command_builder/command_builders/netsh_2008.rb
33
+ - lib/fluent_command_builder/command_builders/nunit_console_25.rb
34
+ - lib/fluent_command_builder/command_builders/rake_09.rb
35
+ - lib/fluent_command_builder/command_builders/tf_2010.rb
31
36
  - lib/fluent_command_builder.rb
32
37
  homepage: http://rubygems.org/gems/fluent_command_builder
33
38
  licenses: []