Class: FluentCommandBuilder::Bundle::V11::Check

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/bundle_11.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.



100
101
102
103
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 100

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

Instance Method Details

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

Yields:

  • (@b)


104
105
106
107
108
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 104

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

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

Yields:

  • (@b)


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

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