mini_deploy 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +100 -0
  3. data/lib/mini_deploy/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 473fa23602774bdc1dc6953804f0a3d7673a9a97
4
- data.tar.gz: 507b0dcc7e5f6132666af103048200cbc332d0ef
3
+ metadata.gz: 453fa4cf414606a37c654d009372f35af3a12638
4
+ data.tar.gz: ff225ee11ce14cf8c658677a2f8c19282329499d
5
5
  SHA512:
6
- metadata.gz: 4f8de201c571c865ad5e074ae40cd081c2d70fc8d46c0e4daa7b8264e594e7c4339189e6ce3430e370e0d3f28f1ed24d254632105af9080f085e1801bda70f8d
7
- data.tar.gz: 517b6065af26a535b73eedc5883d289c6cc3509488c13570c381593c1fa86db2bad1fa27454078e9b7a4013ecbea5b092cf049bb16bbc263f2e5f697b6613f2f
6
+ metadata.gz: e20cc58d825d60b0e6ec4db0e62815952dac8b91e30891746ea99cc47e29faea4bf9d5633416f1b9645787fc0ee71d0aaece646f407679501282f6036b2d2dc0
7
+ data.tar.gz: 8987276a60240fd655112914c16e415bce8b9a9e0dc3e2f4258c5ad0ff6e8c5c8a5e3f661522f4e9038fb78c0afde97d5000489bde89e3aa93e89d8cc468c10b
data/README.md CHANGED
@@ -12,3 +12,103 @@ Via Rubygems
12
12
  ```shell
13
13
  gem install mini_deploy
14
14
  ```
15
+
16
+ Usage
17
+ --------
18
+
19
+ ![usage_output](http://i.imgur.com/s7Z5GEp.png)
20
+
21
+ ```shell
22
+
23
+ # Create Sample Script
24
+ mdt install
25
+
26
+ # Start Receipts
27
+ mdt start receipts/sample.yml --host config/sample_hosts.yml
28
+
29
+ ```
30
+
31
+ Sample hosts config
32
+ --------
33
+
34
+ ```yaml
35
+ ---
36
+
37
+ - node_id: NODE_ID_1
38
+ host: 10.10.10.101
39
+ ftp_username: sample
40
+ ftp_password: "pass^00^"
41
+ info:
42
+ domain: example.com
43
+ sample_file: sample.php
44
+ error_log_file: error_log
45
+
46
+ - node_id: NODE_ID_2
47
+ host: 10.10.10.102
48
+ ftp_username: sample
49
+ ftp_password: "pass^00^"
50
+ info:
51
+ domain: example-2.com
52
+ sample_file: sample.php
53
+ error_log_file: error_log
54
+
55
+ ```
56
+
57
+ Sample receipt
58
+ --------
59
+
60
+ ```yaml
61
+ ---
62
+
63
+ title: Sample Deploy
64
+ date: 2017-01-02
65
+ author: Your Name
66
+ agent_name: SampleDeploy/1.0.0
67
+
68
+ deploy_nodes:
69
+ - NODE_ID_1
70
+ - NODE_ID_2
71
+
72
+ tasks:
73
+
74
+ - process: upload_file
75
+ upload_local_source: ./[info.sample_file]
76
+ remote_path: ./[info.sample_file]
77
+ upload_mode: binary
78
+ tag: Test Upload File
79
+
80
+ - process: send_http_request
81
+ method: get
82
+ url: http://[info.domain]/get
83
+ tag: Test Http Get Request
84
+ params:
85
+ test: "[info.domain]"
86
+
87
+ - process: remove_file
88
+ remote_file: ./[info.sample_file]
89
+ tag: Remove file
90
+
91
+ - process: send_http_request
92
+ method: post
93
+ params:
94
+ author: Guanting Chen
95
+ test: "[info.domain]"
96
+ url: https://httpbin.org/post
97
+ tag: Test Http Post Request
98
+
99
+ - process: check_file
100
+ remote_file: ./[info.sample_file]
101
+ tag: Check sample.php
102
+
103
+ - process: find_file_content
104
+ remote_file: ./[info.sample_file]
105
+ search_content: "[a-z]pple ="
106
+ ignore_case: yes
107
+ tag: Find sample.php content
108
+
109
+ ```
110
+
111
+ LICENSE
112
+ --------
113
+
114
+ MIT LICENSE ( See LICENSE.txt )
@@ -1,3 +1,3 @@
1
1
  module MiniDeploy
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guanting Chen (@Sif)