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

#execute!, #to_s

Constructor Details

#initialize(builder) ⇒ Check



85
86
87
88
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 85

def initialize(builder)
  super builder
  @builder.append ' check'
end

Instance Method Details

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

Yields:

  • (@builder)


89
90
91
92
93
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 89

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

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

Yields:

  • (@builder)


94
95
96
97
98
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 94

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