Class: Nuker::Commands::RemoveProject

Inherits:
Base
  • Object
show all
Defined in:
lib/nuker/commands/remove_project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#resource, #url

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

#projectObject

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

#executeObject



12
13
14
# File 'lib/nuker/commands/remove_project.rb', line 12

def execute
  resource.delete("projects/#{project}")
end