# File lib/rudy/routines/handlers/group.rb, line 25 def create(name=nil) name ||= current_group_name return if exists? name li "Creating group: #{name}" Rudy::AWS::EC2::Groups.create name end
# File lib/rudy/routines/handlers/group.rb, line 45 def destroy(name=nil) name ||= current_group_name return unless exists? name li "Destroying group: #{name}" Rudy::AWS::EC2::Groups.destroy name end
# File lib/rudy/routines/handlers/group.rb, line 14 def execute(type, routine, rset, lbox, argv=nil) routine.each_pair do |action, definition| unless respond_to?(action.to_sym) Rudy::Huxtable.le %(GroupHandler: unknown action "#{action}") next end Rudy::Huxtable.ld %(GroupHandler: "#{action}") Rudy::Routines::Handlers::Group.send(action, definition) end end
# File lib/rudy/routines/handlers/group.rb, line 40 def exists?(name=nil) name ||= current_group_name Rudy::AWS::EC2::Groups.exists? name end
# File lib/rudy/routines/handlers/group.rb, line 52 def get(name=nil) name ||= current_group_name Rudy::AWS::EC2::Groups.get name end
# File lib/rudy/routines/handlers/group.rb, line 57 def list Rudy::AWS::EC2::Groups.list end
Generated with the Darkfish Rdoc Generator 2.