Class: Bailiff::Instrument

Inherits:
Context
  • Object
show all
Defined in:
lib/bailiff/instrument.rb

Instance Attribute Summary

Attributes included from Core

#commands, #dependencies, #instruments

Instance Method Summary collapse

Methods included from Ruby

#gem, #has_gem

Methods included from Apt

#apt, #has_apt

Methods included from Core

#after, #before, #context, #dependency, #execute, #has_package, #instrument, #package, #resolve, #run, #write_file

Constructor Details

#initialize(context, &block) ⇒ Instrument

Returns a new instance of Instrument.



4
5
6
7
# File 'lib/bailiff/instrument.rb', line 4

def initialize(context, &block)
  @context = context
  instance_eval(&block)
end