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