Class: FluentCommandBuilder::Cucumber::V11::Cucumber

Inherits:
FluentCommandBuilder::CommandBase show all
Defined in:
lib/fluent_command_builder/command_builders/cucumber_11.rb

Instance Method Summary collapse

Methods inherited from FluentCommandBuilder::CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, feature = nil) ⇒ Cucumber

Returns a new instance of Cucumber.



24
25
26
27
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 24

def initialize(underlying_builder, feature=nil)
  super underlying_builder
  @b.append " #{@b.format feature}" unless feature.nil?
end

Instance Method Details

#autoformat(dir) {|@b| ... } ⇒ Object

Yields:

  • (@b)


88
89
90
91
92
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 88

def autoformat(dir)
  @b.append " --autoformat #{@b.format dir}"
  yield @b if block_given?
  self
end

#backtrace {|@b| ... } ⇒ Object

Yields:

  • (@b)


113
114
115
116
117
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 113

def backtrace
  @b.append ' --backtrace'
  yield @b if block_given?
  self
end

#color {|@b| ... } ⇒ Object

Yields:

  • (@b)


73
74
75
76
77
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 73

def color
  @b.append ' --color'
  yield @b if block_given?
  self
end

#dotcucumber(dir) {|@b| ... } ⇒ Object

Yields:

  • (@b)


158
159
160
161
162
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 158

def dotcucumber(dir)
  @b.append " --dotcucumber #{@b.format dir}"
  yield @b if block_given?
  self
end

#drb {|@b| ... } ⇒ Object

Yields:

  • (@b)


148
149
150
151
152
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 148

def drb
  @b.append ' --drb'
  yield @b if block_given?
  self
end

#dry_run {|@b| ... } ⇒ Object

Yields:

  • (@b)


83
84
85
86
87
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 83

def dry_run
  @b.append ' --dry-run'
  yield @b if block_given?
  self
end

#exclude(pattern) {|@b| ... } ⇒ Object

Yields:

  • (@b)


58
59
60
61
62
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 58

def exclude(pattern)
  @b.append " --exclude #{@b.format pattern}"
  yield @b if block_given?
  self
end

#expand {|@b| ... } ⇒ Object

Yields:

  • (@b)


143
144
145
146
147
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 143

def expand
  @b.append ' --expand'
  yield @b if block_given?
  self
end

#format(format) {|@b| ... } ⇒ Object

Yields:

  • (@b)


38
39
40
41
42
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 38

def format(format)
  @b.append " --format #{@b.format format}"
  yield @b if block_given?
  self
end

#guess {|@b| ... } ⇒ Object

Yields:

  • (@b)


133
134
135
136
137
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 133

def guess
  @b.append ' --guess'
  yield @b if block_given?
  self
end

#help {|@b| ... } ⇒ Object

Yields:

  • (@b)


168
169
170
171
172
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 168

def help
  @b.append ' --help'
  yield @b if block_given?
  self
end

#i18n(lang) {|@b| ... } ⇒ Object

Yields:

  • (@b)


33
34
35
36
37
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 33

def i18n(lang)
  @b.append " --i18n #{@b.format lang}"
  yield @b if block_given?
  self
end

#lines(lines) {|@b| ... } ⇒ Object

Yields:

  • (@b)


138
139
140
141
142
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 138

def lines(lines)
  @b.append " --lines #{@b.format lines}"
  yield @b if block_given?
  self
end

#name(name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


53
54
55
56
57
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 53

def name(name)
  @b.append " --name #{@b.format name}"
  yield @b if block_given?
  self
end

#no_color {|@b| ... } ⇒ Object

Yields:

  • (@b)


78
79
80
81
82
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 78

def no_color
  @b.append ' --no-color'
  yield @b if block_given?
  self
end

#no_multiline {|@b| ... } ⇒ Object

Yields:

  • (@b)


93
94
95
96
97
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 93

def no_multiline
  @b.append ' --no-multiline'
  yield @b if block_given?
  self
end

#no_profile {|@b| ... } ⇒ Object

Yields:

  • (@b)


68
69
70
71
72
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 68

def no_profile
  @b.append ' --no-profile'
  yield @b if block_given?
  self
end

#no_snippets {|@b| ... } ⇒ Object

Yields:

  • (@b)


103
104
105
106
107
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 103

def no_snippets
  @b.append ' --no-snippets'
  yield @b if block_given?
  self
end

#no_source {|@b| ... } ⇒ Object

Yields:

  • (@b)


98
99
100
101
102
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 98

def no_source
  @b.append ' --no-source'
  yield @b if block_given?
  self
end

#out(file) {|@b| ... } ⇒ Object

Yields:

  • (@b)


43
44
45
46
47
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 43

def out(file)
  @b.append " --out #{@b.format file}"
  yield @b if block_given?
  self
end

#port(port) {|@b| ... } ⇒ Object

Yields:

  • (@b)


153
154
155
156
157
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 153

def port(port)
  @b.append " --port #{@b.format port}"
  yield @b if block_given?
  self
end

#profile(profile) {|@b| ... } ⇒ Object

Yields:

  • (@b)


63
64
65
66
67
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 63

def profile(profile)
  @b.append " --profile #{@b.format profile}"
  yield @b if block_given?
  self
end

#quiet {|@b| ... } ⇒ Object

Yields:

  • (@b)


108
109
110
111
112
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 108

def quiet
  @b.append ' --quiet'
  yield @b if block_given?
  self
end

#require(library) {|@b| ... } ⇒ Object

Yields:

  • (@b)


28
29
30
31
32
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 28

def require(library)
  @b.append " --require #{@b.format library}"
  yield @b if block_given?
  self
end

#strict {|@b| ... } ⇒ Object

Yields:

  • (@b)


118
119
120
121
122
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 118

def strict
  @b.append ' --strict'
  yield @b if block_given?
  self
end

#tags(tag_expression) {|@b| ... } ⇒ Object

Yields:

  • (@b)


48
49
50
51
52
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 48

def tags(tag_expression)
  @b.append " --tags #{@b.format tag_expression, ','}"
  yield @b if block_given?
  self
end

#verbose {|@b| ... } ⇒ Object

Yields:

  • (@b)


128
129
130
131
132
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 128

def verbose
  @b.append ' --verbose'
  yield @b if block_given?
  self
end

#version {|@b| ... } ⇒ Object

Yields:

  • (@b)


163
164
165
166
167
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 163

def version
  @b.append ' --version'
  yield @b if block_given?
  self
end

#wip {|@b| ... } ⇒ Object

Yields:

  • (@b)


123
124
125
126
127
# File 'lib/fluent_command_builder/command_builders/cucumber_11.rb', line 123

def wip
  @b.append ' --wip'
  yield @b if block_given?
  self
end