class Deltacloud::Collections::Base

Public Class Methods

check_features(opts={}) click to toggle source
# File lib/deltacloud/helpers.rb, line 86
def self.check_features(opts={})
  Sinatra::Rabbit.set :check_features, opts[:for]
end
new_route_for(route, &block) click to toggle source
# File lib/deltacloud/helpers.rb, line 75
def self.new_route_for(route, &block)
  get route_for('/' + route.to_s + '/new') do
    instance_eval(&block) if block_given?
    respond_to do |format|
      format.html do
        haml :"#{route}/new"
      end
    end
  end
end
route_for(url) click to toggle source
# File lib/deltacloud/helpers.rb, line 90
def self.route_for(url)
  "#{settings.root_url}#{url}"
end