Class: FluentCommandBuilder::Bundle::V11::Init

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) ⇒ Init

Returns a new instance of Init.



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

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

Instance Method Details

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

Yields:

  • (@b)


142
143
144
145
146
# File 'lib/fluent_command_builder/command_builders/bundle_11.rb', line 142

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