官术网_书友最值得收藏!

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Open the newly created service object in the app/services/attachments_service.rb file and move the responsibility for uploading the file to the AttachmentsService#upload method."

A block of code is set as follows:

class AttachmentsService

def upload(message_id, user_id, file_name, data, media_type)
message = Message.find_by!(message_id, user_id: user_id)
file = StorageBucket.files.create(
key: file_name,
body: StringIO.new(Base64.decode64(data), 'rb'),
public: true
)

Any command-line input or output is written as follows:

brew install docker-compose

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Installing and managing a Kubernetes cluster is beyond the scope of this book. Luckily, a project called Minikube allows you to easily run a single-node Kubernetes cluster on your development machine."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 镇平县| 宣武区| 民县| 璧山县| 眉山市| 西乌珠穆沁旗| 枝江市| 武清区| 张家口市| 图木舒克市| 原阳县| 枣强县| 泸州市| 开原市| 遂溪县| 徐水县| 台前县| 韶山市| 高平市| 崇义县| 广安市| 高唐县| 石楼县| 南汇区| 山西省| 武安市| 公主岭市| 余江县| 光泽县| 桐乡市| 朝阳县| 竹北市| 西乡县| 治多县| 九龙坡区| 三江| 会泽县| 荣昌县| 铜鼓县| 东兰县| 吉木萨尔县|