fluent_command_builder 0.5.1 → 0.5.2
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.
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
3
|
+
|
|
4
|
+
module FluentCommandBuilder
|
|
5
|
+
module Cucumber
|
|
6
|
+
module V12
|
|
7
|
+
COMMAND_NAME = 'cucumber'
|
|
8
|
+
class Cucumber < CommandBase
|
|
9
|
+
def initialize(builder, feature=nil)
|
|
10
|
+
super builder
|
|
11
|
+
@builder.append " #{@builder.format feature}" unless feature.nil?
|
|
12
|
+
end
|
|
13
|
+
def require(library)
|
|
14
|
+
@builder.append " --require #{@builder.format library}"
|
|
15
|
+
yield @builder if block_given?
|
|
16
|
+
self
|
|
17
|
+
end
|
|
18
|
+
def i18n(lang)
|
|
19
|
+
@builder.append " --i18n #{@builder.format lang}"
|
|
20
|
+
yield @builder if block_given?
|
|
21
|
+
self
|
|
22
|
+
end
|
|
23
|
+
def format(format)
|
|
24
|
+
@builder.append " --format #{@builder.format format}"
|
|
25
|
+
yield @builder if block_given?
|
|
26
|
+
self
|
|
27
|
+
end
|
|
28
|
+
def out(file)
|
|
29
|
+
@builder.append " --out #{@builder.format file}"
|
|
30
|
+
yield @builder if block_given?
|
|
31
|
+
self
|
|
32
|
+
end
|
|
33
|
+
def tags(tag_expression)
|
|
34
|
+
@builder.append " --tags #{@builder.format tag_expression, ','}"
|
|
35
|
+
yield @builder if block_given?
|
|
36
|
+
self
|
|
37
|
+
end
|
|
38
|
+
def name(name)
|
|
39
|
+
@builder.append " --name #{@builder.format name}"
|
|
40
|
+
yield @builder if block_given?
|
|
41
|
+
self
|
|
42
|
+
end
|
|
43
|
+
def exclude(pattern)
|
|
44
|
+
@builder.append " --exclude #{@builder.format pattern}"
|
|
45
|
+
yield @builder if block_given?
|
|
46
|
+
self
|
|
47
|
+
end
|
|
48
|
+
def profile(profile)
|
|
49
|
+
@builder.append " --profile #{@builder.format profile}"
|
|
50
|
+
yield @builder if block_given?
|
|
51
|
+
self
|
|
52
|
+
end
|
|
53
|
+
def no_profile
|
|
54
|
+
@builder.append ' --no-profile'
|
|
55
|
+
yield @builder if block_given?
|
|
56
|
+
self
|
|
57
|
+
end
|
|
58
|
+
def color
|
|
59
|
+
@builder.append ' --color'
|
|
60
|
+
yield @builder if block_given?
|
|
61
|
+
self
|
|
62
|
+
end
|
|
63
|
+
def no_color
|
|
64
|
+
@builder.append ' --no-color'
|
|
65
|
+
yield @builder if block_given?
|
|
66
|
+
self
|
|
67
|
+
end
|
|
68
|
+
def dry_run
|
|
69
|
+
@builder.append ' --dry-run'
|
|
70
|
+
yield @builder if block_given?
|
|
71
|
+
self
|
|
72
|
+
end
|
|
73
|
+
def autoformat(dir)
|
|
74
|
+
@builder.append " --autoformat #{@builder.format dir}"
|
|
75
|
+
yield @builder if block_given?
|
|
76
|
+
self
|
|
77
|
+
end
|
|
78
|
+
def no_multiline
|
|
79
|
+
@builder.append ' --no-multiline'
|
|
80
|
+
yield @builder if block_given?
|
|
81
|
+
self
|
|
82
|
+
end
|
|
83
|
+
def no_source
|
|
84
|
+
@builder.append ' --no-source'
|
|
85
|
+
yield @builder if block_given?
|
|
86
|
+
self
|
|
87
|
+
end
|
|
88
|
+
def no_snippets
|
|
89
|
+
@builder.append ' --no-snippets'
|
|
90
|
+
yield @builder if block_given?
|
|
91
|
+
self
|
|
92
|
+
end
|
|
93
|
+
def quiet
|
|
94
|
+
@builder.append ' --quiet'
|
|
95
|
+
yield @builder if block_given?
|
|
96
|
+
self
|
|
97
|
+
end
|
|
98
|
+
def backtrace
|
|
99
|
+
@builder.append ' --backtrace'
|
|
100
|
+
yield @builder if block_given?
|
|
101
|
+
self
|
|
102
|
+
end
|
|
103
|
+
def strict
|
|
104
|
+
@builder.append ' --strict'
|
|
105
|
+
yield @builder if block_given?
|
|
106
|
+
self
|
|
107
|
+
end
|
|
108
|
+
def wip
|
|
109
|
+
@builder.append ' --wip'
|
|
110
|
+
yield @builder if block_given?
|
|
111
|
+
self
|
|
112
|
+
end
|
|
113
|
+
def verbose
|
|
114
|
+
@builder.append ' --verbose'
|
|
115
|
+
yield @builder if block_given?
|
|
116
|
+
self
|
|
117
|
+
end
|
|
118
|
+
def guess
|
|
119
|
+
@builder.append ' --guess'
|
|
120
|
+
yield @builder if block_given?
|
|
121
|
+
self
|
|
122
|
+
end
|
|
123
|
+
def lines(lines)
|
|
124
|
+
@builder.append " --lines #{@builder.format lines}"
|
|
125
|
+
yield @builder if block_given?
|
|
126
|
+
self
|
|
127
|
+
end
|
|
128
|
+
def expand
|
|
129
|
+
@builder.append ' --expand'
|
|
130
|
+
yield @builder if block_given?
|
|
131
|
+
self
|
|
132
|
+
end
|
|
133
|
+
def drb
|
|
134
|
+
@builder.append ' --drb'
|
|
135
|
+
yield @builder if block_given?
|
|
136
|
+
self
|
|
137
|
+
end
|
|
138
|
+
def no_drb
|
|
139
|
+
@builder.append ' --no-drb'
|
|
140
|
+
yield @builder if block_given?
|
|
141
|
+
self
|
|
142
|
+
end
|
|
143
|
+
def port(port)
|
|
144
|
+
@builder.append " --port #{@builder.format port}"
|
|
145
|
+
yield @builder if block_given?
|
|
146
|
+
self
|
|
147
|
+
end
|
|
148
|
+
def dotcucumber(dir)
|
|
149
|
+
@builder.append " --dotcucumber #{@builder.format dir}"
|
|
150
|
+
yield @builder if block_given?
|
|
151
|
+
self
|
|
152
|
+
end
|
|
153
|
+
def version
|
|
154
|
+
@builder.append ' --version'
|
|
155
|
+
yield @builder if block_given?
|
|
156
|
+
self
|
|
157
|
+
end
|
|
158
|
+
def help
|
|
159
|
+
@builder.append ' --help'
|
|
160
|
+
yield @builder if block_given?
|
|
161
|
+
self
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
def cucumber(feature=nil)
|
|
165
|
+
builder = CommandBuilder.new COMMAND_NAME
|
|
166
|
+
command = Cucumber.new builder, feature
|
|
167
|
+
yield builder if block_given?
|
|
168
|
+
command
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
def cucumber_12(feature=nil)
|
|
173
|
+
builder = CommandBuilder.new Cucumber::V12::COMMAND_NAME
|
|
174
|
+
command = Cucumber::V12::Cucumber.new builder, feature
|
|
175
|
+
yield builder if block_given?
|
|
176
|
+
command
|
|
177
|
+
end
|
|
178
|
+
end
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
3
|
+
|
|
4
|
+
module FluentCommandBuilder
|
|
5
|
+
module DevAppserverPython
|
|
6
|
+
module V17
|
|
7
|
+
COMMAND_NAME = 'dev_appserver.py'
|
|
8
|
+
class DevAppserverPython < CommandBase
|
|
9
|
+
def initialize(builder, application_root)
|
|
10
|
+
super builder
|
|
11
|
+
@builder.append " #{@builder.format application_root}"
|
|
12
|
+
end
|
|
13
|
+
def address(address)
|
|
14
|
+
@builder.append " --address=#{@builder.format address}"
|
|
15
|
+
yield @builder if block_given?
|
|
16
|
+
self
|
|
17
|
+
end
|
|
18
|
+
def clear_datastore
|
|
19
|
+
@builder.append ' --clear_datastore'
|
|
20
|
+
yield @builder if block_given?
|
|
21
|
+
self
|
|
22
|
+
end
|
|
23
|
+
def debug
|
|
24
|
+
@builder.append ' --debug'
|
|
25
|
+
yield @builder if block_given?
|
|
26
|
+
self
|
|
27
|
+
end
|
|
28
|
+
def help
|
|
29
|
+
@builder.append ' --help'
|
|
30
|
+
yield @builder if block_given?
|
|
31
|
+
self
|
|
32
|
+
end
|
|
33
|
+
def port(port)
|
|
34
|
+
@builder.append " --port=#{@builder.format port}"
|
|
35
|
+
yield @builder if block_given?
|
|
36
|
+
self
|
|
37
|
+
end
|
|
38
|
+
def allow_skipped_files
|
|
39
|
+
@builder.append ' --allow_skipped_files'
|
|
40
|
+
yield @builder if block_given?
|
|
41
|
+
self
|
|
42
|
+
end
|
|
43
|
+
def auth_domain
|
|
44
|
+
@builder.append ' --auth_domain'
|
|
45
|
+
yield @builder if block_given?
|
|
46
|
+
self
|
|
47
|
+
end
|
|
48
|
+
def backends
|
|
49
|
+
@builder.append ' --backends'
|
|
50
|
+
yield @builder if block_given?
|
|
51
|
+
self
|
|
52
|
+
end
|
|
53
|
+
def blobstore_path(dir)
|
|
54
|
+
@builder.append " --blobstore_path=#{@builder.format dir}"
|
|
55
|
+
yield @builder if block_given?
|
|
56
|
+
self
|
|
57
|
+
end
|
|
58
|
+
def clear_prospective_search
|
|
59
|
+
@builder.append ' --clear_prospective_search'
|
|
60
|
+
yield @builder if block_given?
|
|
61
|
+
self
|
|
62
|
+
end
|
|
63
|
+
def datastore_path(ds_file)
|
|
64
|
+
@builder.append " --datastore_path=#{@builder.format ds_file}"
|
|
65
|
+
yield @builder if block_given?
|
|
66
|
+
self
|
|
67
|
+
end
|
|
68
|
+
def debug_imports
|
|
69
|
+
@builder.append ' --debug_imports'
|
|
70
|
+
yield @builder if block_given?
|
|
71
|
+
self
|
|
72
|
+
end
|
|
73
|
+
def default_partition
|
|
74
|
+
@builder.append ' --default_partition'
|
|
75
|
+
yield @builder if block_given?
|
|
76
|
+
self
|
|
77
|
+
end
|
|
78
|
+
def disable_static_caching
|
|
79
|
+
@builder.append ' --disable_static_caching'
|
|
80
|
+
yield @builder if block_given?
|
|
81
|
+
self
|
|
82
|
+
end
|
|
83
|
+
def disable_task_running
|
|
84
|
+
@builder.append ' --disable_task_running'
|
|
85
|
+
yield @builder if block_given?
|
|
86
|
+
self
|
|
87
|
+
end
|
|
88
|
+
def enable_sendmail
|
|
89
|
+
@builder.append ' --enable_sendmail'
|
|
90
|
+
yield @builder if block_given?
|
|
91
|
+
self
|
|
92
|
+
end
|
|
93
|
+
def high_replication
|
|
94
|
+
@builder.append ' --high_replication'
|
|
95
|
+
yield @builder if block_given?
|
|
96
|
+
self
|
|
97
|
+
end
|
|
98
|
+
def history_path(path)
|
|
99
|
+
@builder.append " --history_path=#{@builder.format path}"
|
|
100
|
+
yield @builder if block_given?
|
|
101
|
+
self
|
|
102
|
+
end
|
|
103
|
+
def multiprocess_min_port
|
|
104
|
+
@builder.append ' --multiprocess_min_port'
|
|
105
|
+
yield @builder if block_given?
|
|
106
|
+
self
|
|
107
|
+
end
|
|
108
|
+
def mysql_host(hostname)
|
|
109
|
+
@builder.append " --mysql_host=#{@builder.format hostname}"
|
|
110
|
+
yield @builder if block_given?
|
|
111
|
+
self
|
|
112
|
+
end
|
|
113
|
+
def mysql_port(port)
|
|
114
|
+
@builder.append " --mysql_port=#{@builder.format port}"
|
|
115
|
+
yield @builder if block_given?
|
|
116
|
+
self
|
|
117
|
+
end
|
|
118
|
+
def mysql_user(user)
|
|
119
|
+
@builder.append " --mysql_user=#{@builder.format user}"
|
|
120
|
+
yield @builder if block_given?
|
|
121
|
+
self
|
|
122
|
+
end
|
|
123
|
+
def mysql_password(password)
|
|
124
|
+
@builder.append " --mysql_password=#{@builder.format password}"
|
|
125
|
+
yield @builder if block_given?
|
|
126
|
+
self
|
|
127
|
+
end
|
|
128
|
+
def mysql_socket(path)
|
|
129
|
+
@builder.append " --mysql_socket=#{@builder.format path}"
|
|
130
|
+
yield @builder if block_given?
|
|
131
|
+
self
|
|
132
|
+
end
|
|
133
|
+
def persist_logs
|
|
134
|
+
@builder.append ' --persist_logs'
|
|
135
|
+
yield @builder if block_given?
|
|
136
|
+
self
|
|
137
|
+
end
|
|
138
|
+
def require_indexes
|
|
139
|
+
@builder.append ' --require_indexes'
|
|
140
|
+
yield @builder if block_given?
|
|
141
|
+
self
|
|
142
|
+
end
|
|
143
|
+
def show_mail_body
|
|
144
|
+
@builder.append ' --show_mail_body'
|
|
145
|
+
yield @builder if block_given?
|
|
146
|
+
self
|
|
147
|
+
end
|
|
148
|
+
def skip_sdk_update_check
|
|
149
|
+
@builder.append ' --skip_sdk_update_check'
|
|
150
|
+
yield @builder if block_given?
|
|
151
|
+
self
|
|
152
|
+
end
|
|
153
|
+
def smtp_host(hostname)
|
|
154
|
+
@builder.append " --smtp_host=#{@builder.format hostname}"
|
|
155
|
+
yield @builder if block_given?
|
|
156
|
+
self
|
|
157
|
+
end
|
|
158
|
+
def smtp_port(port)
|
|
159
|
+
@builder.append " --smtp_port=#{@builder.format port}"
|
|
160
|
+
yield @builder if block_given?
|
|
161
|
+
self
|
|
162
|
+
end
|
|
163
|
+
def smtp_user(user)
|
|
164
|
+
@builder.append " --smtp_user=#{@builder.format user}"
|
|
165
|
+
yield @builder if block_given?
|
|
166
|
+
self
|
|
167
|
+
end
|
|
168
|
+
def smtp_password(password)
|
|
169
|
+
@builder.append " --smtp_password=#{@builder.format password}"
|
|
170
|
+
yield @builder if block_given?
|
|
171
|
+
self
|
|
172
|
+
end
|
|
173
|
+
def task_retry_seconds
|
|
174
|
+
@builder.append ' --task_retry_seconds'
|
|
175
|
+
yield @builder if block_given?
|
|
176
|
+
self
|
|
177
|
+
end
|
|
178
|
+
def use_sqlite
|
|
179
|
+
@builder.append ' --use_sqlite'
|
|
180
|
+
yield @builder if block_given?
|
|
181
|
+
self
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
def dev_appserver_python(application_root)
|
|
185
|
+
builder = CommandBuilder.new COMMAND_NAME
|
|
186
|
+
command = DevAppserverPython.new builder, application_root
|
|
187
|
+
yield builder if block_given?
|
|
188
|
+
command
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
def dev_appserver_python_17(application_root)
|
|
193
|
+
builder = CommandBuilder.new DevAppserverPython::V17::COMMAND_NAME
|
|
194
|
+
command = DevAppserverPython::V17::DevAppserverPython.new builder, application_root
|
|
195
|
+
yield builder if block_given?
|
|
196
|
+
command
|
|
197
|
+
end
|
|
198
|
+
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.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-07-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70179195378600 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,7 +21,7 @@ dependencies:
|
|
|
21
21
|
version: '0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70179195378600
|
|
25
25
|
description: A command line builder with a fluent interface written in Ruby.
|
|
26
26
|
email: matthew-github@matthewriley.name
|
|
27
27
|
executables: []
|
|
@@ -31,11 +31,14 @@ files:
|
|
|
31
31
|
- lib/fluent_command_builder/command_base.rb
|
|
32
32
|
- lib/fluent_command_builder/command_builder.rb
|
|
33
33
|
- lib/fluent_command_builder/command_builders/appcfg_python_16.rb
|
|
34
|
+
- lib/fluent_command_builder/command_builders/appcfg_python_17.rb
|
|
34
35
|
- lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb
|
|
35
36
|
- lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb
|
|
36
37
|
- lib/fluent_command_builder/command_builders/bundle_11.rb
|
|
37
38
|
- lib/fluent_command_builder/command_builders/cucumber_11.rb
|
|
39
|
+
- lib/fluent_command_builder/command_builders/cucumber_12.rb
|
|
38
40
|
- lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb
|
|
41
|
+
- lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb
|
|
39
42
|
- lib/fluent_command_builder/command_builders/dotcover_10.rb
|
|
40
43
|
- lib/fluent_command_builder/command_builders/dotcover_11.rb
|
|
41
44
|
- lib/fluent_command_builder/command_builders/dotcover_12.rb
|