Methods
public instance
Included modules
Public instance methods
authorize
(ports=nil, addresses=nil, name=nil)
[show source]
# File lib/rudy/routines/handlers/group.rb, line 32 32: def authorize(ports=nil, addresses=nil, name=nil) 33: modify(:authorize, ports, addresses, name) 34: end
create
(name=nil)
[show source]
# File lib/rudy/routines/handlers/group.rb, line 25 25: def create(name=nil) 26: name ||= current_group_name 27: return if exists? name 28: li "Creating group: #{name}" 29: Rudy::AWS::EC2::Groups.create name 30: end
destroy
(name=nil)
[show source]
# File lib/rudy/routines/handlers/group.rb, line 45 45: def destroy(name=nil) 46: name ||= current_group_name 47: return unless exists? name 48: li "Destroying group: #{name}" 49: Rudy::AWS::EC2::Groups.destroy name 50: end
execute
(type, routine, rset, lbox, argv=nil)
[show source]
# File lib/rudy/routines/handlers/group.rb, line 14 14: def execute(type, routine, rset, lbox, argv=nil) 15: routine.each_pair do |action, definition| 16: unless respond_to?(action.to_sym) 17: Rudy::Huxtable.le %Q(GroupHandler: unknown action "#{action}") 18: next 19: end 20: Rudy::Huxtable.ld %Q(GroupHandler: "#{action}") 21: Rudy::Routines::Handlers::Group.send(action, definition) 22: end 23: end
exists?
(name=nil)
[show source]
# File lib/rudy/routines/handlers/group.rb, line 40 40: def exists?(name=nil) 41: name ||= current_group_name 42: Rudy::AWS::EC2::Groups.exists? name 43: end
get
(name=nil)
[show source]
# File lib/rudy/routines/handlers/group.rb, line 52 52: def get(name=nil) 53: name ||= current_group_name 54: Rudy::AWS::EC2::Groups.get name 55: end
list
()
[show source]
# File lib/rudy/routines/handlers/group.rb, line 57 57: def list 58: Rudy::AWS::EC2::Groups.list 59: end
raise_early_exceptions
(type, batch, rset, lbox, argv=nil)
[show source]
# File lib/rudy/routines/handlers/group.rb, line 10 10: def raise_early_exceptions(type, batch, rset, lbox, argv=nil) 11: 12: end
revoke
(ports=nil, addresses=nil, name=nil)
[show source]
# File lib/rudy/routines/handlers/group.rb, line 36 36: def revoke(ports=nil, addresses=nil, name=nil) 37: modify(:revoke, ports, addresses, name) 38: end