127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
# File 'lib/rhc/commands/cartridge.rb', line 127
def remove(cartridge)
rest_app = find_app(:include => :cartridges)
rest_cartridge = check_cartridges(cartridge, :from => rest_app.cartridges).first
confirm_action "Removing a cartridge is a destructive operation that may result in loss of data associated with the cartridge.\n\nAre you sure you wish to remove #{rest_cartridge.name} from '#{rest_app.name}'?"
say "Removing #{rest_cartridge.name} from '#{rest_app.name}' ... "
rest_cartridge.destroy
success "removed"
paragraph{ rest_cartridge.messages.each { |msg| success msg } }
0
end
|