UNPKG

3.45 kBMarkdownView Raw
1# deploy-state-util
2
3[![Dependency status](http://img.shields.io/david/octoblu/deploy-state-util.svg?style=flat)](https://david-dm.org/octoblu/deploy-state-util)
4[![devDependency Status](http://img.shields.io/david/dev/octoblu/deploy-state-util.svg?style=flat)](https://david-dm.org/octoblu/deploy-state-util)
5[![Build Status](http://img.shields.io/travis/octoblu/deploy-state-util.svg?style=flat)](https://travis-ci.org/octoblu/deploy-state-util)
6
7[![NPM](https://nodei.co/npm/deploy-state-util.svg?style=flat)](https://npmjs.org/package/deploy-state-util)
8
9## Introduction
10
11The utility for the [deploy-state-service](https://github.com/octoblu/deploy-state-service) and other deployment related services.
12
13## Installing
14
15```bash
16npm install --global deploy-state-util
17```
18
19**For the octoblu team:** Make sure you have the latest dotfiles.
20
21## Commands
22
23### list
24
25```bash
26deploy-state list
27```
28
29List the deployments of a project. The project name will be auto assummed when inside a node project.
30
31### configure
32
33```bash
34deploy-state configure
35```
36
37Configures a project to work with the deploy-state service.
38
39### set
40
41```bash
42deploy-state set [build|cluster]
43```
44
45Set the state of a cluster, or build. Typically used for overriding deployments.
46
47### status
48
49```bash
50deploy-state status
51```
52
53List the status of a deployment. The project name and version will be auto assummed when inside a node project.
54
55## watch
56
57```bash
58deploy-state watch
59```
60
61This is the alternative to `wump`.
62
63Watch the status of a deployment. The project name and version will be auto assummed when inside a node project.
64
65## Example Configuration
66
67**Location:** `~/.octoblu/depoy-state.json`
68
69```json
70{
71 "deploy-state": {
72 "hostname": "deploy-state.octoblu.com",
73 "username": "...",
74 "password": "..."
75 },
76 "governators": {
77 "cluster-1": {
78 "hostname": "governator-cluster-1.octoblu.com",
79 "username": "...",
80 "password": "..."
81 },
82 "cluster-2": {
83 "hostname": "governator-cluster-2.octoblu.com",
84 "username": "...",
85 "password": "..."
86 }
87 },
88 "service-state": {
89 "cluster-1": {
90 "hostname": "service-state-cluster-1.octoblu.com",
91 "username": "...",
92 "password": "..."
93 },
94 "cluster-2": {
95 "hostname": "service-state-cluster-2.octoblu.com",
96 "username": "...",
97 "password": "..."
98 }
99 }
100}
101```
102
103## License
104
105The MIT License (MIT)
106
107Copyright 2016 Octoblu
108
109Permission is hereby granted, free of charge, to any person obtaining a copy
110of this software and associated documentation files (the "Software"), to deal
111in the Software without restriction, including without limitation the rights
112to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
113copies of the Software, and to permit persons to whom the Software is
114furnished to do so, subject to the following conditions:
115
116The above copyright notice and this permission notice shall be included in all
117copies or substantial portions of the Software.
118
119THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
120IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
121FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
122AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
123LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
124OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
125SOFTWARE.