Class: InstanceAgent::Plugins::CodeDeployPlugin::RemoveContextCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/instance_agent/plugins/codedeploy/install_instruction.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ RemoveContextCommand

Returns a new instance of RemoveContextCommand.



379
380
381
# File 'lib/instance_agent/plugins/codedeploy/install_instruction.rb', line 379

def initialize(object)
  @object = object
end

Instance Method Details

#executeObject



383
384
385
# File 'lib/instance_agent/plugins/codedeploy/install_instruction.rb', line 383

def execute
  system("semanage fcontext -d #{@object}")
end