Class: LonoCfn::CLI::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/lono-cfn/cli/help.rb

Class Method Summary collapse

Class Method Details

.createObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/lono-cfn/cli/help.rb', line 5

def create
"Examples:\n\nProvided that you are in a lono project and have a `my-stack` lono template definition.  To create a stack you can simply run:\n\n$ lono-cfn create my-stack\n\nThe above command will generate and use the template in output/my-stack.json and parameters in params/my-stack.txt.  The template by convention defaults to the name of the stack.  In turn, the params by convention defaults to the name of the template.\n\nHere are examples of overriding the template and params name conventions.\n\n$ lono-cfn create my-stack --template different-name1\n\nThe template that will be use is output/different-name1.json and the parameters will use params/different-name1.json.\n\n$ lono-cfn create my-stack --params different-name2\n\nThe template that will be use is output/different-name2.json and the parameters will use params/different-name2.json.\n\n$ lono-cfn create my-stack --template different-name3 --params different-name4\n\nThe template that will be use is output/different-name3.json and the parameters will use params/different-name4.json.\n\n"
end

.deleteObject



59
60
61
62
63
64
65
66
67
# File 'lib/lono-cfn/cli/help.rb', line 59

def delete
"Examples:\n\n$ lono-cfn delete my-stack\n\nThe above command will delete my-stack.\n"
end

.diffObject



85
86
87
88
89
90
91
92
93
# File 'lib/lono-cfn/cli/help.rb', line 85

def diff
"Displays code diff of the generated CloudFormation template locally vs the existing template on AWS. You can set a desired diff viewer by setting the LONO_CFN_DIFF environment variable.\n\nExamples:\n\n$ lono-cfn diff my-stack\n"
end

.previewObject



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/lono-cfn/cli/help.rb', line 69

def preview
"Generates a CloudFormation preview.  This is similar to a `terraform plan` or puppet's dry-run mode.\n\nExample output:\n\nCloudFormation preview for 'example' stack update. Changes:\n\nRemove AWS::Route53::RecordSet: DnsRecord testsubdomain.sub.tongueroo.com\n\nExamples:\n\n$ lono-cfn preview my-stack\n"
end

.updateObject



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/lono-cfn/cli/help.rb', line 32

def update
"Examples:\n\nProvided that you are in a lono project and have a `my-stack` lono template definition.  To update a stack you can simply run:\n\n$ lono-cfn update my-stack\n\nThe above command will generate and use the template in output/my-stack.json and parameters in params/my-stack.txt.  The template by convention defaults to the name of the stack.  In turn, the params by convention defaults to the name of the template.\n\nHere are examples of overriding the template and params name conventions.\n\n$ lono-cfn update my-stack --template different-name1\n\nThe template that will be use is output/different-name1.json and the parameters will use params/different-name1.json.\n\n$ lono-cfn update my-stack --params different-name2\n\nThe template that will be use is output/different-name2.json and the parameters will use params/different-name2.json.\n\n$ lono-cfn update my-stack --template different-name3 --params different-name4\n\nThe template that will be use is output/different-name3.json and the parameters will use params/different-name4.json.\n\n"
end