Sha256: 5e2ac5c98b30d476682964f099be0c428fc38948349faa1ee0d8d83094893738
Contents?: true
Size: 1.13 KB
Versions: 18
Compression:
Stored size: 1.13 KB
Contents
module Rudy module Routines class Base include Rudy::Huxtable def initialize a, s, r = @@global.accesskey, @@global.secretkey, @@global.region @sdb = Rudy::AWS::SDB.new(a, s, r) @rinst = Rudy::AWS::EC2::Instances.new(a, s, r) @rgrp = Rudy::AWS::EC2::Groups.new(a, s, r) @rkey = Rudy::AWS::EC2::KeyPairs.new(a, s, r) @rvol = Rudy::AWS::EC2::Volumes.new(a, s, r) @rsnap = Rudy::AWS::EC2::Snapshots.new(a, s, r) init end def init end def execute raise "Override execute method" end def task_separator(title) dashes = 52 - title.size # dashes = 0 if dashes < 1 ("%s--- %s %s" % [$/, title, '-'*dashes]).bright end def machine_separator(title) dashes = 52 - title.size # dashes = 0 if dashes < 1 ("%s--- %s %s" % [$/, title.bright, '-'*dashes]).bright.color(:blue) end end end end Rudy::Utils.require_glob(RUDY_LIB, 'rudy', 'routines', 'helpers', '*.rb') Rudy::Utils.require_glob(RUDY_LIB, 'rudy', 'routines', '*.rb')
Version data entries
18 entries across 18 versions & 2 rubygems