Class: Nuker::Commands::RemoveProject
- Defined in:
- lib/nuker/commands/remove_project.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(project) ⇒ RemoveProject
constructor
A new instance of RemoveProject.
Methods inherited from Base
Constructor Details
#initialize(project) ⇒ RemoveProject
Returns a new instance of RemoveProject.
8 9 10 |
# File 'lib/nuker/commands/remove_project.rb', line 8 def initialize(project) @project = project end |
Instance Attribute Details
#project ⇒ Object
Returns the value of attribute project.
6 7 8 |
# File 'lib/nuker/commands/remove_project.rb', line 6 def project @project end |
Instance Method Details
#execute ⇒ Object
12 13 14 |
# File 'lib/nuker/commands/remove_project.rb', line 12 def execute resource.delete("projects/#{project}") end |