Skip to content

Commit

Permalink
Add "inspect" subcommand.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdub committed Dec 22, 2015
1 parent 185739f commit b6bbd37
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions bin/stackup
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,14 @@ Clamp do

end

subcommand "resources", "Display stack resources." do

def execute
display_data(stack.resources)
end

end

subcommand "outputs", "Display stack outputs." do

def execute
Expand All @@ -273,10 +281,16 @@ Clamp do

end

subcommand "resources", "Display stack resources." do
subcommand "inspect", "status + parameters + resources + outputs" do

def execute
display_data(stack.resources)
data = {
"Status" => stack.status,
"Parameters" => stack.parameters,
"Resources" => stack.resources,
"Outputs" => stack.outputs,
}
display_data(data)
end

end
Expand Down

0 comments on commit b6bbd37

Please sign in to comment.