Class: FluentCommandBuilder::Bundle::V12::Check

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/bundle_12.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder) ⇒ Check

Returns a new instance of Check.



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

def initialize(underlying_builder)
  super underlying_builder
  @b.append ' check'
end

Instance Method Details

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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