Class: Puppet_X::Coi::Jboss::Internal::CommandCompilator
- Inherits:
- 
      Object
      
        - Object
- Puppet_X::Coi::Jboss::Internal::CommandCompilator
 
- Defined in:
- lib/puppet_x/coi/jboss/internal/command_compilator.rb
Overview
Class that handles compilation of commands
Instance Method Summary collapse
- 
  
    
      #compile(runasdomain, profile, cmd)  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Method that adds profile and neccesary stuff. 
Instance Method Details
#compile(runasdomain, profile, cmd) ⇒ String
Method that adds profile and neccesary stuff
| 8 9 10 11 12 13 14 | # File 'lib/puppet_x/coi/jboss/internal/command_compilator.rb', line 8 def compile(runasdomain, profile, cmd) out = cmd.to_s convr = Puppet_X::Coi::Jboss::BuildinsUtils::ToBooleanConverter.new(runasdomain) asdomain = convr.to_bool out = "/profile=#{profile}#{out}" if asdomain && out[0..9] == '/subsystem' out end |