Class: EbsSnapshotter::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/ebs_snapshotter/cli.rb

Instance Method Summary collapse

Instance Method Details

#snapshotObject



14
15
16
17
# File 'lib/ebs_snapshotter/cli.rb', line 14

def snapshot
  snapshotter = EbsSnapshotter::Snapshotter.new(options[:config_path], options[:volume_id])
  snapshotter.snapshot
end