def content
      return unless present?
      @content ||= YAML.load(File.open(path))
    rescue Psych::SyntaxError => e
      # Using $stdout.puts so that it can be stubbed out on jruby.
      $stdout.puts "Your Cloudfile has invalid YAML syntax."
      $stdout.puts "You are seeing this message because we stopped supporting invalid YAML that was allowed in Ruby 1.8."
      $stdout.puts ""
      $stdout.puts "The most likely reason is a string starting with '*' in the domains array. The solution is to surround such strings with quotes, e.g.:"
      $stdout.puts "domains:"
      $stdout.puts "  - \"*.example.com\""
      $stdout.puts ""
      $stdout.puts "The original YAML error message was:"
      $stdout.puts "  #{e.message}"
      $stdout.puts ""
      $stdout.puts "If you need any assistance, feel free to contact support@shellycloud.com"
      exit 1
    end
def content
      return unless present?
      @content ||= YAML.load(File.open(path))
    rescue Psych::SyntaxError => e
      # Using $stdout.puts so that it can be stubbed out on jruby.
      $stdout.puts "Your Cloudfile has invalid YAML syntax."
      $stdout.puts "You are seeing this message because we stopped supporting invalid YAML that was allowed in Ruby 1.8."
      $stdout.puts ""
      $stdout.puts "The most likely reason is a string starting with '*' in the domains array. The solution is to surround such strings with quotes, e.g.:"
      $stdout.puts "domains:"
      $stdout.puts "  - \"*.example.com\""
      $stdout.puts ""
      $stdout.puts "The original YAML error message was:"
      $stdout.puts "  #{e.message}"
      $stdout.puts ""
      $stdout.puts "If you need any assistance, feel free to contact support@shellycloud.com"
      exit 1
    end
Internal: Load and parse Cloudfile