lib/shelly/cloudfile.rb in shelly-0.2.15 vs lib/shelly/cloudfile.rb in shelly-0.2.16
- old
+ new
@@ -3,11 +3,11 @@
module Shelly
class Cloudfile < Model
attr_accessor :content
# Cloudfile attributes used for generating Cloudfile from a template
attr_accessor :code_name, :ruby_version, :environment, :domains,
- :databases, :size
+ :databases, :size, :thin, :puma
# Public: Return true if Cloudfile is present in current directory
def present?
File.exists?(path)
end
@@ -23,10 +23,9 @@
# Public: Generate example Cloudfile based on object attributes
# Returns the generated Cloudfile as String
def generate
@email = current_user.email
- @thin = @size == "small" ? 2 : 4
template = File.read(template_path)
cloudfile = ERB.new(template, nil, "%<>-")
cloudfile.result(binding)
end