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.



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

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

Instance Method Details

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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