Sha256: 42e1258e9b93c867ec02e5008d5a9f1d082e9b337dbf3b4cac802065939804cc
Contents?: true
Size: 624 Bytes
Versions: 3
Compression:
Stored size: 624 Bytes
Contents
class ContainersController < MVCLI::Controller requires :containers requires :command def index containers.all end def create template = Containers::CreateForm argv = MVCLI::Argv.new command.argv form = template.new argv.options form.validate! options = { key: form.name } containers.create options end def show directory end def destroy #Note, cannot destroy a container with files in it directory.tap do |d| d.destroy end end private def directory index.find {|d| d.key == params[:id]} or fail Fog::Errors::NotFound end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rumm-0.1.0 | app/controllers/containers_controller.rb |
rumm-0.0.24 | app/controllers/containers_controller.rb |
rumm-0.0.23 | app/controllers/containers_controller.rb |