Class: Gantree::CLI::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/gantree/cli/help.rb

Class Method Summary collapse

Class Method Details

.buildObject



76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/gantree/cli/help.rb', line 76

def build
"Builds and tags a docker application.\n\nExamples:\n\n# Automatically tag a build\n\n$ gantree build\n\n# Add custom tag to a build \n\n$ gantree build -t deploy \n\n# Override image path to point to another hub\n\n$ gantree build -i quay.io/bleacherreport/cms\n\n"
end

.createObject



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/gantree/cli/help.rb', line 40

def create
"Examples:\n\n$ gantree create APPLICATION\n\n$ gantree create linguist-stag-s1\n\n$ gantree create APPLICATION -e ENVIRONMENT\n\n$ gantree create linguist-stag-s1 -e linguist-stag-app-s1\n\n$ gantree create --dupe=rails-stag-s1 rails-stag-s3 \n"
end

.deployObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/gantree/cli/help.rb', line 15

def deploy
"Examples:\n\n$ gantree deploy -t TAG ENVIRONMENT\n\n$ gantree deploy -t latest stag-cauldon-app-s1\n\n# to deploy to all environments to within the same application\n\n$ gantree deploy -t TAG APPLICATION\n\n$ gantree deploy -t TAG cauldron-stag-s1\n\n# add remote .ebextensions\n\n$ gantree deploy -t TAG stag-cauldron-s1 -x \"[email protected]:br/.ebextensions.git\"\n\n# add remote .ebextensions branch\n\n$ gantree deploy -t TAG stag-cauldron-s1 -x \"[email protected]:br/.ebextensions:feature_branch\"\n\n"
end

.initObject



5
6
7
8
9
10
11
12
13
# File 'lib/gantree/cli/help.rb', line 5

def init
"Examples:\n\n$ gantree init -u USERNAME -p PORT HANDLE/REPO:TAG\n\n$ gantree init -u frodriguez -p 3000 bleacher/cauldron:master\n"
end

.pushObject



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/gantree/cli/help.rb', line 97

def push
"Push docker image tag to hub\n\nExamples:\n\n# Push automatically tagged build\n\n$ gantree push\n\n# Push custom tagged build\n\n$ gantree push -t deploy \n\n# Push to another hub/acocunt/repo\n\n$ gantree push -i quay.io/bleacherreport/cms\n"
end

.restartObject



135
136
137
138
139
140
141
142
143
# File 'lib/gantree/cli/help.rb', line 135

def restart
"Restart docker environment\n\nExamples:\n\n$ gantree restart stag-rails-app-s1\n"
end

.shipObject



117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# File 'lib/gantree/cli/help.rb', line 117

def ship
"build, push and deploy docker image to elastic beanstalk\n\nExamples:\n\n# Automatically tag a build, push that build and deploy to elastic beanstalk\n\n$ gantree ship cms-stag-s1\n\n# Override defaults\n\n$ gantree ship -i bleacher/cms -x \"[email protected]:br/.ebextensions.git:master\" cms-stag-s1\n\n$ gantree ship -i bleacher/cms -t built -x \"[email protected]:br/.ebextensions.git:master\" cms-stag-s1\n"
end

.updateObject



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/gantree/cli/help.rb', line 56

def update
"Examples:\n\n# Update a cloudformation stack\n\n$ gantree update linguist-stag-s1\n\n# Add an app role to an existing stack\n\n$ gantree update linguist-stag-s1 -r worker\n\n# Update docker solution starck version\n\n$ gantree update linguist-stag-s1 -s latest\n\n$ gantree update linguist-stag-s1 -s \"64bit Amazon Linux 2014.09 v1.0.11 running Docker 1.3.3\"\n"
end