Class: InspecPlugins::Parallelism::Command
- Inherits:
 - 
      Object
      
        
- Object
 - InspecPlugins::Parallelism::Command
 
 
- Defined in:
 - lib/plugins/inspec-parallel/lib/inspec-parallel/command.rb
 
Instance Attribute Summary collapse
- 
  
    
      #cli_options_to_parallel_cmd  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute cli_options_to_parallel_cmd.
 - 
  
    
      #default_profile  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute default_profile.
 - 
  
    
      #invocations  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute invocations.
 - 
  
    
      #run_in_background  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute run_in_background.
 - 
  
    
      #sub_cmd  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute sub_cmd.
 
Instance Method Summary collapse
- #dry_run ⇒ Object
 - 
  
    
      #initialize(cli_options_to_parallel_cmd, default_profile, sub_cmd = "exec")  ⇒ Command 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Command.
 - #run ⇒ Object
 
Constructor Details
#initialize(cli_options_to_parallel_cmd, default_profile, sub_cmd = "exec") ⇒ Command
Returns a new instance of Command.
      14 15 16 17 18 19 20 21  | 
    
      # File 'lib/plugins/inspec-parallel/lib/inspec-parallel/command.rb', line 14 def initialize(, default_profile, sub_cmd = "exec") @default_profile = default_profile @cli_options_to_parallel_cmd = @sub_cmd = sub_cmd @logger = Inspec::Log @invocations = @run_in_background = ["bg"] end  | 
  
Instance Attribute Details
#cli_options_to_parallel_cmd ⇒ Object
Returns the value of attribute cli_options_to_parallel_cmd.
      12 13 14  | 
    
      # File 'lib/plugins/inspec-parallel/lib/inspec-parallel/command.rb', line 12 def @cli_options_to_parallel_cmd end  | 
  
#default_profile ⇒ Object
Returns the value of attribute default_profile.
      12 13 14  | 
    
      # File 'lib/plugins/inspec-parallel/lib/inspec-parallel/command.rb', line 12 def default_profile @default_profile end  | 
  
#invocations ⇒ Object
Returns the value of attribute invocations.
      12 13 14  | 
    
      # File 'lib/plugins/inspec-parallel/lib/inspec-parallel/command.rb', line 12 def invocations @invocations end  | 
  
#run_in_background ⇒ Object
Returns the value of attribute run_in_background.
      12 13 14  | 
    
      # File 'lib/plugins/inspec-parallel/lib/inspec-parallel/command.rb', line 12 def run_in_background @run_in_background end  | 
  
#sub_cmd ⇒ Object
Returns the value of attribute sub_cmd.
      12 13 14  | 
    
      # File 'lib/plugins/inspec-parallel/lib/inspec-parallel/command.rb', line 12 def sub_cmd @sub_cmd end  | 
  
Instance Method Details
#dry_run ⇒ Object
      31 32 33 34  | 
    
      # File 'lib/plugins/inspec-parallel/lib/inspec-parallel/command.rb', line 31 def dry_run validate_invocations! dry_run_commands end  |