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

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.
主站蜘蛛池模板: 安阳县| 天门市| 汉中市| 绥芬河市| 文安县| 沽源县| 彩票| 河津市| 徐水县| 静海县| 雷波县| 阿城市| 阳东县| 金塔县| 广德县| 太湖县| 睢宁县| 武陟县| 洪江市| 宜章县| 永定县| 陇南市| 嘉峪关市| 兴仁县| 博罗县| 抚州市| 淮北市| 莱芜市| 甘南县| 吉木乃县| 杭锦后旗| 通榆县| 塘沽区| 江孜县| 鹿邑县| 绥宁县| 高平市| 正安县| 华安县| 彩票| 西华县|