Class: Elasticsnap::Cli::Application

Inherits:
Base
  • Object
show all
Defined in:
lib/elasticsnap/cli/application.rb

Instance Method Summary collapse

Methods inherited from Base

banner, exit_on_failure?

Instance Method Details

#snapshotObject



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/elasticsnap/cli/application.rb', line 15

def snapshot
  Snapshot.new(
    security_group: options[:security_group],
    url: options[:url],
    mount: options[:mount],
    quorum_nodes: options[:quorum_nodes],
    wait_timeout: options[:wait_timeout],
    cluster_name: options[:cluster_name],
    ssh_user: options[:ssh_user]
  ).call
end

#versionObject



28
29
30
# File 'lib/elasticsnap/cli/application.rb', line 28

def version
  say("Elasticsnap: #{Elasticsnap::VERSION}", :yellow)
end