fluent_command_builder 0.1.18 → 0.1.19
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.
- data/lib/fluent_command_builder/command_base.rb +11 -1
- data/lib/fluent_command_builder/command_builder.rb +6 -1
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +24 -7
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb +24 -7
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +24 -7
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +58 -51
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +39 -7
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +47 -35
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +16 -7
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +16 -7
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +16 -7
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +17 -7
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +22 -7
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +22 -7
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +30 -7
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +30 -7
- data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +40 -7
- data/lib/fluent_command_builder/command_builders/mstest_2005.rb +26 -7
- data/lib/fluent_command_builder/command_builders/mstest_2008.rb +27 -7
- data/lib/fluent_command_builder/command_builders/mstest_2010.rb +30 -7
- data/lib/fluent_command_builder/command_builders/netsh_2008.rb +79 -43
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +31 -7
- data/lib/fluent_command_builder/command_builders/rake_09.rb +34 -8
- data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +93 -39
- data/lib/fluent_command_builder/command_builders/simian_23.rb +33 -7
- data/lib/fluent_command_builder/command_builders/tf_2010.rb +372 -235
- data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +339 -278
- metadata +2 -2
@@ -1,5 +1,10 @@
|
|
1
1
|
class CommandBase
|
2
|
-
|
2
|
+
|
3
|
+
def initialize builder
|
4
|
+
@builder = builder
|
5
|
+
end
|
6
|
+
|
7
|
+
def execute!
|
3
8
|
begin
|
4
9
|
require 'rake'
|
5
10
|
sh to_s
|
@@ -7,4 +12,9 @@ class CommandBase
|
|
7
12
|
Kernel.system to_s
|
8
13
|
end
|
9
14
|
end
|
15
|
+
|
16
|
+
def to_s
|
17
|
+
@builder.to_s
|
18
|
+
end
|
19
|
+
|
10
20
|
end
|
@@ -3,7 +3,8 @@ require File.expand_path(File.dirname(__FILE__) + '/command_base')
|
|
3
3
|
module FluentCommandBuilder
|
4
4
|
class CommandBuilder
|
5
5
|
|
6
|
-
def initialize command=nil
|
6
|
+
def initialize command_name, command=nil
|
7
|
+
@command_name = command_name
|
7
8
|
@command = command.to_s
|
8
9
|
end
|
9
10
|
|
@@ -34,6 +35,10 @@ module FluentCommandBuilder
|
|
34
35
|
end
|
35
36
|
|
36
37
|
def to_s
|
38
|
+
"#{@command_name} #{@command.strip}".strip
|
39
|
+
end
|
40
|
+
|
41
|
+
def args
|
37
42
|
@command.strip
|
38
43
|
end
|
39
44
|
|
@@ -4,78 +4,95 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module AspnetCompiler
|
6
6
|
module V20
|
7
|
+
COMMAND_NAME = 'aspnet_compiler'
|
7
8
|
class AspnetCompiler < CommandBase
|
8
9
|
def initialize builder, target_dir=nil
|
9
|
-
|
10
|
-
@builder.append 'aspnet_compiler'
|
10
|
+
super builder
|
11
11
|
@builder.append " #{@builder.format target_dir}" unless target_dir.nil?
|
12
12
|
end
|
13
13
|
def metabase_path metabase_path
|
14
14
|
@builder.append " -m #{@builder.format metabase_path}"
|
15
|
+
yield @builder if block_given?
|
15
16
|
self
|
16
17
|
end
|
17
18
|
def virtual_path virtual_path
|
18
19
|
@builder.append " -v #{@builder.format virtual_path}"
|
20
|
+
yield @builder if block_given?
|
19
21
|
self
|
20
22
|
end
|
21
23
|
def physical_path physical_path
|
22
24
|
@builder.append " -p #{@builder.format physical_path}"
|
25
|
+
yield @builder if block_given?
|
23
26
|
self
|
24
27
|
end
|
25
28
|
def allow_subsequent_updates
|
26
29
|
@builder.append ' -u'
|
30
|
+
yield @builder if block_given?
|
27
31
|
self
|
28
32
|
end
|
29
33
|
def force_overwrite_files
|
30
34
|
@builder.append ' -f'
|
35
|
+
yield @builder if block_given?
|
31
36
|
self
|
32
37
|
end
|
33
38
|
def force_debug_output
|
34
39
|
@builder.append ' -d'
|
40
|
+
yield @builder if block_given?
|
35
41
|
self
|
36
42
|
end
|
37
43
|
def fixed_names
|
38
44
|
@builder.append ' -fixedNames'
|
45
|
+
yield @builder if block_given?
|
39
46
|
self
|
40
47
|
end
|
41
48
|
def full_rebuild
|
42
49
|
@builder.append ' -c'
|
50
|
+
yield @builder if block_given?
|
43
51
|
self
|
44
52
|
end
|
45
53
|
def error_stack
|
46
54
|
@builder.append ' -errorStack'
|
55
|
+
yield @builder if block_given?
|
47
56
|
self
|
48
57
|
end
|
49
58
|
def no_logo
|
50
59
|
@builder.append ' -noLogo'
|
60
|
+
yield @builder if block_given?
|
51
61
|
self
|
52
62
|
end
|
53
63
|
def key_file file
|
54
64
|
@builder.append " -keyFile #{@builder.format file}"
|
65
|
+
yield @builder if block_given?
|
55
66
|
self
|
56
67
|
end
|
57
68
|
def key_container container
|
58
69
|
@builder.append " -keyContainer #{@builder.format container}"
|
70
|
+
yield @builder if block_given?
|
59
71
|
self
|
60
72
|
end
|
61
73
|
def aptca
|
62
74
|
@builder.append ' -aptca'
|
75
|
+
yield @builder if block_given?
|
63
76
|
self
|
64
77
|
end
|
65
78
|
def delay_sign
|
66
79
|
@builder.append ' -delaySign'
|
80
|
+
yield @builder if block_given?
|
67
81
|
self
|
68
82
|
end
|
69
|
-
def to_s
|
70
|
-
@builder.to_s
|
71
|
-
end
|
72
83
|
end
|
73
84
|
def aspnet_compiler target_dir=nil
|
74
|
-
|
85
|
+
builder = CommandBuilder.new COMMAND_NAME
|
86
|
+
command = AspnetCompiler.new builder, target_dir
|
87
|
+
yield builder if block_given?
|
88
|
+
command
|
75
89
|
end
|
76
90
|
end
|
77
91
|
end
|
78
92
|
def aspnet_compiler_20 target_dir=nil
|
79
|
-
|
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
|
80
97
|
end
|
81
98
|
end
|
@@ -4,78 +4,95 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module AspnetCompiler
|
6
6
|
module V35
|
7
|
+
COMMAND_NAME = 'aspnet_compiler'
|
7
8
|
class AspnetCompiler < CommandBase
|
8
9
|
def initialize builder, target_dir=nil
|
9
|
-
|
10
|
-
@builder.append 'aspnet_compiler'
|
10
|
+
super builder
|
11
11
|
@builder.append " #{@builder.format target_dir}" unless target_dir.nil?
|
12
12
|
end
|
13
13
|
def metabase_path metabase_path
|
14
14
|
@builder.append " -m #{@builder.format metabase_path}"
|
15
|
+
yield @builder if block_given?
|
15
16
|
self
|
16
17
|
end
|
17
18
|
def virtual_path virtual_path
|
18
19
|
@builder.append " -v #{@builder.format virtual_path}"
|
20
|
+
yield @builder if block_given?
|
19
21
|
self
|
20
22
|
end
|
21
23
|
def physical_path physical_path
|
22
24
|
@builder.append " -p #{@builder.format physical_path}"
|
25
|
+
yield @builder if block_given?
|
23
26
|
self
|
24
27
|
end
|
25
28
|
def allow_subsequent_updates
|
26
29
|
@builder.append ' -u'
|
30
|
+
yield @builder if block_given?
|
27
31
|
self
|
28
32
|
end
|
29
33
|
def force_overwrite_files
|
30
34
|
@builder.append ' -f'
|
35
|
+
yield @builder if block_given?
|
31
36
|
self
|
32
37
|
end
|
33
38
|
def force_debug_output
|
34
39
|
@builder.append ' -d'
|
40
|
+
yield @builder if block_given?
|
35
41
|
self
|
36
42
|
end
|
37
43
|
def fixed_names
|
38
44
|
@builder.append ' -fixedNames'
|
45
|
+
yield @builder if block_given?
|
39
46
|
self
|
40
47
|
end
|
41
48
|
def full_rebuild
|
42
49
|
@builder.append ' -c'
|
50
|
+
yield @builder if block_given?
|
43
51
|
self
|
44
52
|
end
|
45
53
|
def error_stack
|
46
54
|
@builder.append ' -errorStack'
|
55
|
+
yield @builder if block_given?
|
47
56
|
self
|
48
57
|
end
|
49
58
|
def no_logo
|
50
59
|
@builder.append ' -noLogo'
|
60
|
+
yield @builder if block_given?
|
51
61
|
self
|
52
62
|
end
|
53
63
|
def key_file file
|
54
64
|
@builder.append " -keyFile #{@builder.format file}"
|
65
|
+
yield @builder if block_given?
|
55
66
|
self
|
56
67
|
end
|
57
68
|
def key_container container
|
58
69
|
@builder.append " -keyContainer #{@builder.format container}"
|
70
|
+
yield @builder if block_given?
|
59
71
|
self
|
60
72
|
end
|
61
73
|
def aptca
|
62
74
|
@builder.append ' -aptca'
|
75
|
+
yield @builder if block_given?
|
63
76
|
self
|
64
77
|
end
|
65
78
|
def delay_sign
|
66
79
|
@builder.append ' -delaySign'
|
80
|
+
yield @builder if block_given?
|
67
81
|
self
|
68
82
|
end
|
69
|
-
def to_s
|
70
|
-
@builder.to_s
|
71
|
-
end
|
72
83
|
end
|
73
84
|
def aspnet_compiler target_dir=nil
|
74
|
-
|
85
|
+
builder = CommandBuilder.new COMMAND_NAME
|
86
|
+
command = AspnetCompiler.new builder, target_dir
|
87
|
+
yield builder if block_given?
|
88
|
+
command
|
75
89
|
end
|
76
90
|
end
|
77
91
|
end
|
78
92
|
def aspnet_compiler_35 target_dir=nil
|
79
|
-
|
93
|
+
builder = CommandBuilder.new AspnetCompiler::V35::COMMAND_NAME
|
94
|
+
command = AspnetCompiler::V35::AspnetCompiler.new builder, target_dir
|
95
|
+
yield builder if block_given?
|
96
|
+
command
|
80
97
|
end
|
81
98
|
end
|
@@ -4,78 +4,95 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module AspnetCompiler
|
6
6
|
module V40
|
7
|
+
COMMAND_NAME = 'aspnet_compiler'
|
7
8
|
class AspnetCompiler < CommandBase
|
8
9
|
def initialize builder, target_dir=nil
|
9
|
-
|
10
|
-
@builder.append 'aspnet_compiler'
|
10
|
+
super builder
|
11
11
|
@builder.append " #{@builder.format target_dir}" unless target_dir.nil?
|
12
12
|
end
|
13
13
|
def metabase_path metabase_path
|
14
14
|
@builder.append " -m #{@builder.format metabase_path}"
|
15
|
+
yield @builder if block_given?
|
15
16
|
self
|
16
17
|
end
|
17
18
|
def virtual_path virtual_path
|
18
19
|
@builder.append " -v #{@builder.format virtual_path}"
|
20
|
+
yield @builder if block_given?
|
19
21
|
self
|
20
22
|
end
|
21
23
|
def physical_path physical_path
|
22
24
|
@builder.append " -p #{@builder.format physical_path}"
|
25
|
+
yield @builder if block_given?
|
23
26
|
self
|
24
27
|
end
|
25
28
|
def allow_subsequent_updates
|
26
29
|
@builder.append ' -u'
|
30
|
+
yield @builder if block_given?
|
27
31
|
self
|
28
32
|
end
|
29
33
|
def force_overwrite_files
|
30
34
|
@builder.append ' -f'
|
35
|
+
yield @builder if block_given?
|
31
36
|
self
|
32
37
|
end
|
33
38
|
def force_debug_output
|
34
39
|
@builder.append ' -d'
|
40
|
+
yield @builder if block_given?
|
35
41
|
self
|
36
42
|
end
|
37
43
|
def fixed_names
|
38
44
|
@builder.append ' -fixedNames'
|
45
|
+
yield @builder if block_given?
|
39
46
|
self
|
40
47
|
end
|
41
48
|
def full_rebuild
|
42
49
|
@builder.append ' -c'
|
50
|
+
yield @builder if block_given?
|
43
51
|
self
|
44
52
|
end
|
45
53
|
def error_stack
|
46
54
|
@builder.append ' -errorStack'
|
55
|
+
yield @builder if block_given?
|
47
56
|
self
|
48
57
|
end
|
49
58
|
def no_logo
|
50
59
|
@builder.append ' -noLogo'
|
60
|
+
yield @builder if block_given?
|
51
61
|
self
|
52
62
|
end
|
53
63
|
def key_file file
|
54
64
|
@builder.append " -keyFile #{@builder.format file}"
|
65
|
+
yield @builder if block_given?
|
55
66
|
self
|
56
67
|
end
|
57
68
|
def key_container container
|
58
69
|
@builder.append " -keyContainer #{@builder.format container}"
|
70
|
+
yield @builder if block_given?
|
59
71
|
self
|
60
72
|
end
|
61
73
|
def aptca
|
62
74
|
@builder.append ' -aptca'
|
75
|
+
yield @builder if block_given?
|
63
76
|
self
|
64
77
|
end
|
65
78
|
def delay_sign
|
66
79
|
@builder.append ' -delaySign'
|
80
|
+
yield @builder if block_given?
|
67
81
|
self
|
68
82
|
end
|
69
|
-
def to_s
|
70
|
-
@builder.to_s
|
71
|
-
end
|
72
83
|
end
|
73
84
|
def aspnet_compiler target_dir=nil
|
74
|
-
|
85
|
+
builder = CommandBuilder.new COMMAND_NAME
|
86
|
+
command = AspnetCompiler.new builder, target_dir
|
87
|
+
yield builder if block_given?
|
88
|
+
command
|
75
89
|
end
|
76
90
|
end
|
77
91
|
end
|
78
92
|
def aspnet_compiler_40 target_dir=nil
|
79
|
-
|
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
|
80
97
|
end
|
81
98
|
end
|
@@ -4,10 +4,10 @@ require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
4
4
|
module FluentCommandBuilder
|
5
5
|
module Bundle
|
6
6
|
module V11
|
7
|
+
COMMAND_NAME = 'bundle'
|
7
8
|
class Bundle < CommandBase
|
8
9
|
def initialize builder
|
9
|
-
|
10
|
-
@builder.append 'bundle'
|
10
|
+
super builder
|
11
11
|
end
|
12
12
|
def cache
|
13
13
|
Cache.new @builder
|
@@ -21,15 +21,18 @@ module FluentCommandBuilder
|
|
21
21
|
def config name, value=nil
|
22
22
|
@builder.append " config #{@builder.format name}"
|
23
23
|
@builder.append " #{@builder.format value}" unless value.nil?
|
24
|
+
yield @builder if block_given?
|
24
25
|
self
|
25
26
|
end
|
26
27
|
def console group=nil
|
27
28
|
@builder.append ' console'
|
28
29
|
@builder.append " #{@builder.format group}" unless group.nil?
|
30
|
+
yield @builder if block_given?
|
29
31
|
self
|
30
32
|
end
|
31
33
|
def exec command
|
32
34
|
@builder.append " exec #{@builder.format command}"
|
35
|
+
yield @builder if block_given?
|
33
36
|
self
|
34
37
|
end
|
35
38
|
def gem gem
|
@@ -43,6 +46,7 @@ module FluentCommandBuilder
|
|
43
46
|
end
|
44
47
|
def open gem
|
45
48
|
@builder.append " open #{@builder.format gem}"
|
49
|
+
yield @builder if block_given?
|
46
50
|
self
|
47
51
|
end
|
48
52
|
def outdated gem=nil
|
@@ -59,251 +63,254 @@ module FluentCommandBuilder
|
|
59
63
|
end
|
60
64
|
def version
|
61
65
|
@builder.append ' version'
|
66
|
+
yield @builder if block_given?
|
62
67
|
self
|
63
68
|
end
|
64
69
|
def viz
|
65
70
|
Viz.new @builder
|
66
71
|
end
|
67
|
-
def to_s
|
68
|
-
@builder.to_s
|
69
|
-
end
|
70
72
|
end
|
71
73
|
class Cache < CommandBase
|
72
74
|
def initialize builder
|
73
|
-
|
75
|
+
super builder
|
74
76
|
@builder.append ' cache'
|
75
77
|
end
|
76
78
|
def no_prune
|
77
79
|
@builder.append ' --no-prune'
|
80
|
+
yield @builder if block_given?
|
78
81
|
self
|
79
82
|
end
|
80
|
-
def to_s
|
81
|
-
@builder.to_s
|
82
|
-
end
|
83
83
|
end
|
84
84
|
class Check < CommandBase
|
85
85
|
def initialize builder
|
86
|
-
|
86
|
+
super builder
|
87
87
|
@builder.append ' check'
|
88
88
|
end
|
89
89
|
def gemfile file
|
90
90
|
@builder.append " --gemfile=#{@builder.format file}"
|
91
|
+
yield @builder if block_given?
|
91
92
|
self
|
92
93
|
end
|
93
94
|
def path path
|
94
95
|
@builder.append " --path=#{@builder.format path}"
|
96
|
+
yield @builder if block_given?
|
95
97
|
self
|
96
98
|
end
|
97
|
-
def to_s
|
98
|
-
@builder.to_s
|
99
|
-
end
|
100
99
|
end
|
101
100
|
class Clean < CommandBase
|
102
101
|
def initialize builder
|
103
|
-
|
102
|
+
super builder
|
104
103
|
@builder.append ' clean'
|
105
104
|
end
|
106
105
|
def force
|
107
106
|
@builder.append ' --force'
|
107
|
+
yield @builder if block_given?
|
108
108
|
self
|
109
109
|
end
|
110
|
-
def to_s
|
111
|
-
@builder.to_s
|
112
|
-
end
|
113
110
|
end
|
114
111
|
class Gem < CommandBase
|
115
112
|
def initialize builder, gem
|
116
|
-
|
113
|
+
super builder
|
117
114
|
@builder.append " gem #{@builder.format gem}"
|
118
115
|
end
|
119
116
|
def bin
|
120
117
|
@builder.append ' --bin'
|
118
|
+
yield @builder if block_given?
|
121
119
|
self
|
122
120
|
end
|
123
|
-
def to_s
|
124
|
-
@builder.to_s
|
125
|
-
end
|
126
121
|
end
|
127
122
|
class Init < CommandBase
|
128
123
|
def initialize builder
|
129
|
-
|
124
|
+
super builder
|
130
125
|
@builder.append ' init'
|
131
126
|
end
|
132
127
|
def gemspec file
|
133
128
|
@builder.append " --gemspec=#{@builder.format file}"
|
129
|
+
yield @builder if block_given?
|
134
130
|
self
|
135
131
|
end
|
136
|
-
def to_s
|
137
|
-
@builder.to_s
|
138
|
-
end
|
139
132
|
end
|
140
133
|
class Install < CommandBase
|
141
134
|
def initialize builder
|
142
|
-
|
135
|
+
super builder
|
143
136
|
@builder.append ' install'
|
144
137
|
end
|
145
138
|
def binstubs path
|
146
139
|
@builder.append " --binstubs=#{@builder.format path}"
|
140
|
+
yield @builder if block_given?
|
147
141
|
self
|
148
142
|
end
|
149
143
|
def clean
|
150
144
|
@builder.append ' --clean'
|
145
|
+
yield @builder if block_given?
|
151
146
|
self
|
152
147
|
end
|
153
148
|
def deployment
|
154
149
|
@builder.append ' --deployment'
|
150
|
+
yield @builder if block_given?
|
155
151
|
self
|
156
152
|
end
|
157
153
|
def frozen
|
158
154
|
@builder.append ' --frozen'
|
155
|
+
yield @builder if block_given?
|
159
156
|
self
|
160
157
|
end
|
161
158
|
def full_index
|
162
159
|
@builder.append ' --full-index'
|
160
|
+
yield @builder if block_given?
|
163
161
|
self
|
164
162
|
end
|
165
163
|
def gemfile file
|
166
164
|
@builder.append " --gemfile=#{@builder.format file}"
|
165
|
+
yield @builder if block_given?
|
167
166
|
self
|
168
167
|
end
|
169
168
|
def local
|
170
169
|
@builder.append ' --local'
|
170
|
+
yield @builder if block_given?
|
171
171
|
self
|
172
172
|
end
|
173
173
|
def no_cache
|
174
174
|
@builder.append ' --no-cache'
|
175
|
+
yield @builder if block_given?
|
175
176
|
self
|
176
177
|
end
|
177
178
|
def no_prune
|
178
179
|
@builder.append ' --no-prune'
|
180
|
+
yield @builder if block_given?
|
179
181
|
self
|
180
182
|
end
|
181
183
|
def path path
|
182
184
|
@builder.append " --path=#{@builder.format path}"
|
185
|
+
yield @builder if block_given?
|
183
186
|
self
|
184
187
|
end
|
185
188
|
def quiet
|
186
189
|
@builder.append ' --quiet'
|
190
|
+
yield @builder if block_given?
|
187
191
|
self
|
188
192
|
end
|
189
193
|
def shebang string
|
190
194
|
@builder.append " --shebang=#{@builder.format string}"
|
195
|
+
yield @builder if block_given?
|
191
196
|
self
|
192
197
|
end
|
193
198
|
def standalone array
|
194
199
|
@builder.append " --standalone=#{@builder.format array}"
|
200
|
+
yield @builder if block_given?
|
195
201
|
self
|
196
202
|
end
|
197
203
|
def system
|
198
204
|
@builder.append ' --system'
|
205
|
+
yield @builder if block_given?
|
199
206
|
self
|
200
207
|
end
|
201
208
|
def without group
|
202
209
|
@builder.append " --without=#{@builder.format group}"
|
210
|
+
yield @builder if block_given?
|
203
211
|
self
|
204
212
|
end
|
205
|
-
def to_s
|
206
|
-
@builder.to_s
|
207
|
-
end
|
208
213
|
end
|
209
214
|
class Outdated < CommandBase
|
210
215
|
def initialize builder, gem=nil
|
211
|
-
|
216
|
+
super builder
|
212
217
|
@builder.append ' outdated'
|
213
218
|
@builder.append " #{@builder.format gem}" unless gem.nil?
|
214
219
|
end
|
215
220
|
def local
|
216
221
|
@builder.append ' --local'
|
222
|
+
yield @builder if block_given?
|
217
223
|
self
|
218
224
|
end
|
219
225
|
def pre
|
220
226
|
@builder.append ' --pre'
|
227
|
+
yield @builder if block_given?
|
221
228
|
self
|
222
229
|
end
|
223
230
|
def source
|
224
231
|
@builder.append ' --source'
|
232
|
+
yield @builder if block_given?
|
225
233
|
self
|
226
234
|
end
|
227
|
-
def to_s
|
228
|
-
@builder.to_s
|
229
|
-
end
|
230
235
|
end
|
231
236
|
class Package < CommandBase
|
232
237
|
def initialize builder
|
233
|
-
|
238
|
+
super builder
|
234
239
|
@builder.append ' package'
|
235
240
|
end
|
236
241
|
def no_prune
|
237
242
|
@builder.append ' --no-prune'
|
243
|
+
yield @builder if block_given?
|
238
244
|
self
|
239
245
|
end
|
240
|
-
def to_s
|
241
|
-
@builder.to_s
|
242
|
-
end
|
243
246
|
end
|
244
247
|
class Show < CommandBase
|
245
248
|
def initialize builder, gem=nil
|
246
|
-
|
249
|
+
super builder
|
247
250
|
@builder.append ' show'
|
248
251
|
@builder.append " #{@builder.format gem}" unless gem.nil?
|
249
252
|
end
|
250
253
|
def paths
|
251
254
|
@builder.append ' --paths'
|
255
|
+
yield @builder if block_given?
|
252
256
|
self
|
253
257
|
end
|
254
|
-
def to_s
|
255
|
-
@builder.to_s
|
256
|
-
end
|
257
258
|
end
|
258
259
|
class Update < CommandBase
|
259
260
|
def initialize builder, gem=nil
|
260
|
-
|
261
|
+
super builder
|
261
262
|
@builder.append ' update'
|
262
263
|
@builder.append " #{@builder.format gem}" unless gem.nil?
|
263
264
|
end
|
264
265
|
def local
|
265
266
|
@builder.append ' --local'
|
267
|
+
yield @builder if block_given?
|
266
268
|
self
|
267
269
|
end
|
268
270
|
def source source
|
269
271
|
@builder.append " --source=#{@builder.format source}"
|
272
|
+
yield @builder if block_given?
|
270
273
|
self
|
271
274
|
end
|
272
|
-
def to_s
|
273
|
-
@builder.to_s
|
274
|
-
end
|
275
275
|
end
|
276
276
|
class Viz < CommandBase
|
277
277
|
def initialize builder
|
278
|
-
|
278
|
+
super builder
|
279
279
|
@builder.append ' viz'
|
280
280
|
end
|
281
281
|
def file file
|
282
282
|
@builder.append " --file=#{@builder.format file}"
|
283
|
+
yield @builder if block_given?
|
283
284
|
self
|
284
285
|
end
|
285
286
|
def format format
|
286
287
|
@builder.append " --format=#{@builder.format format}"
|
288
|
+
yield @builder if block_given?
|
287
289
|
self
|
288
290
|
end
|
289
291
|
def requirements
|
290
292
|
@builder.append ' --requirements'
|
293
|
+
yield @builder if block_given?
|
291
294
|
self
|
292
295
|
end
|
293
296
|
def version
|
294
297
|
@builder.append ' --version'
|
298
|
+
yield @builder if block_given?
|
295
299
|
self
|
296
300
|
end
|
297
|
-
def to_s
|
298
|
-
@builder.to_s
|
299
|
-
end
|
300
301
|
end
|
301
302
|
def bundle
|
302
|
-
|
303
|
+
builder = CommandBuilder.new COMMAND_NAME
|
304
|
+
command = Bundle.new builder
|
305
|
+
yield builder if block_given?
|
306
|
+
command
|
303
307
|
end
|
304
308
|
end
|
305
309
|
end
|
306
310
|
def bundle_11
|
307
|
-
Bundle::V11::
|
311
|
+
builder = CommandBuilder.new Bundle::V11::COMMAND_NAME
|
312
|
+
command = Bundle::V11::Bundle.new builder
|
313
|
+
yield builder if block_given?
|
314
|
+
command
|
308
315
|
end
|
309
316
|
end
|