Module: Inspec::Backend::Base
- Defined in:
- lib/inspec/backend.rb
Instance Attribute Summary collapse
- 
  
    
      #profile  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute profile. 
Instance Method Summary collapse
- 
  
    
      #inspect  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Ruby internal for pretty-printing a summary for this class. 
- 
  
    
      #local_transport?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    Determine whether the connection/transport is a local connection Useful for resources to modify behavior as necessary, such as using the Ruby stdlib for a better experience. 
- 
  
    
      #to_s  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Ruby internal for printing a nice name for this class. 
- 
  
    
      #version  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Provide a shorthand to retrieve the inspec version from within a profile. 
Instance Attribute Details
#profile ⇒ Object
Returns the value of attribute profile.
| 11 12 13 | # File 'lib/inspec/backend.rb', line 11 def profile @profile end | 
Instance Method Details
#inspect ⇒ Object
Ruby internal for pretty-printing a summary for this class
| 34 35 36 | # File 'lib/inspec/backend.rb', line 34 def inspect "Inspec::Backend::Class @transport=#{backend.class}" end | 
#local_transport? ⇒ Boolean
Determine whether the connection/transport is a local connection Useful for resources to modify behavior as necessary, such as using the Ruby stdlib for a better experience.
| 23 24 25 26 | # File 'lib/inspec/backend.rb', line 23 def local_transport? return false unless defined?(Train::Transports::Local) backend.is_a?(Train::Transports::Local::Connection) end | 
#to_s ⇒ Object
Ruby internal for printing a nice name for this class
| 29 30 31 | # File 'lib/inspec/backend.rb', line 29 def to_s 'Inspec::Backend::Class' end | 
#version ⇒ String
Provide a shorthand to retrieve the inspec version from within a profile
| 16 17 18 | # File 'lib/inspec/backend.rb', line 16 def version Inspec::VERSION end |