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.



381
382
383
# File 'lib/instance_agent/plugins/codedeploy/install_instruction.rb', line 381

def initialize(object)
  @object = object
end

Instance Method Details

#executeObject



385
386
387
# File 'lib/instance_agent/plugins/codedeploy/install_instruction.rb', line 385

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