Class: FluentCommandBuilder::Bundle::V12::Init

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

Returns a new instance of Init.



146
147
148
149
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 146

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

Instance Method Details

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

Yields:

  • (@b)


150
151
152
153
154
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 150

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