From beab1f0ac7212d3c7006238fdd108d66b86323bc Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 7 Aug 2015 14:16:33 -0700 Subject: added `leap compile firewall` --- lib/leap_cli/config/manager.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'lib/leap_cli/config/manager.rb') diff --git a/lib/leap_cli/config/manager.rb b/lib/leap_cli/config/manager.rb index b8343fe..cd4a3d6 100644 --- a/lib/leap_cli/config/manager.rb +++ b/lib/leap_cli/config/manager.rb @@ -291,6 +291,28 @@ module LeapCli @nodes[node.name] = apply_inheritance!(node) end + ## + ## CONNECTIONS + ## + + class ConnectionList < Array + def add(data={}) + self << { + "from" => data[:from], + "to" => data[:to], + "port" => data[:port] + } + end + end + + def connections + @connections ||= ConnectionList.new + end + + ## + ## PARTIALS + ## + # # returns all the partial data for the specified partial path. # partial path is always relative to provider root, but there must be multiple files -- cgit v1.2.3