Class: InstanceAgent::Plugins::CodeDeployPlugin::RemoveContextCommand
- Inherits:
-
Object
- Object
- InstanceAgent::Plugins::CodeDeployPlugin::RemoveContextCommand
- Defined in:
- lib/instance_agent/plugins/codedeploy/install_instruction.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(object) ⇒ RemoveContextCommand
constructor
A new instance of RemoveContextCommand.
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
#execute ⇒ Object
383 384 385 |
# File 'lib/instance_agent/plugins/codedeploy/install_instruction.rb', line 383 def execute system("semanage fcontext -d #{@object}") end |