Method: Seiton::CLI#rds_snapshot

Defined in:
lib/seiton/cli.rb

#rds_snapshotObject



67
68
69
70
71
72
73
74
75
76
# File 'lib/seiton/cli.rb', line 67

def rds_snapshot
  unless options[:before_datetime] then
    puts '--before-datetime must be specified. (--before-datetime=YYYY/MM/DD)'
    exit 1
  end

  ignores = Seiton::Ignores.new(options[:ignores_file], options[:ignores]).generate
  seiton = Seiton::Rds.new
  seiton.rds_snapshot(options[:check], options[:before_datetime], ignores)
end