Class: Jack::Help

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

Class Method Summary collapse

Class Method Details

.configObject

Thor auto generates the subcommand help menu. Leaving here in case we figure out a way to override this Thor behavior.



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/jack/help.rb', line 42

def config
"Manage the environment's config.  Can use this to download the environment's config to jack/cfg folder or upload and apply config in jack/cfg folder to the environment.\n\nExample:\n\n$ jack config get hi-web-stag-1\n\nFor more info:\n\n$ jack help config\n\n$ jack config help upload\n\n$ jack config help download\n"
end

.createObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/jack/help.rb', line 4

def create
"Creates a new environment using the configuration in jack/cfg folder.  The AWS sample app is initially used for the newly created environment.  The sample app is used as a starting point to make sure that the environment is working before you introduce your own app code.\n\n\#{convention}\n\nExample:\n\n$ jack create hi-web-stag-1\n\n$ jack create -c myconfig hi-web-stag-1\n\n$ jack create -a myapp -c myconfig hi-web-stag-1\n"
end

.deployObject



20
21
22
23
24
25
26
27
28
# File 'lib/jack/help.rb', line 20

def deploy
"Deploy code to the Elastic Beanstalk environment.\n\nExample:\n\n$ jack deploy hi-web-stag-1\n"
end

.terminateObject



30
31
32
33
34
35
36
37
38
# File 'lib/jack/help.rb', line 30

def terminate
"Deletes Elastic Beanstalk environment.\n\nExample:\n\n$ jack terminate hi-web-stag-1\n"
end