Project

General

Profile

« Previous | Next » 

Revision 9a9ec5b1

Added by Daniel Lobato Garcia over 8 years ago

Refs #3809 - Enable Rails delegate cop

View differences:

app/models/concerns/fog_extensions/google/server.rb
module Server
extend ActiveSupport::Concern
delegate :flavors, :to => :service
def pretty_machine_type
machine_type.split('/')[-1]
end
def flavors
service.flavors
end
def image_id
image_name unless disks.blank?
end

Also available in: Unified diff