diff options
author | elijah <elijah@riseup.net> | 2017-06-28 13:24:39 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2017-07-04 11:32:51 -0700 |
commit | f365b914662491ab33e6af18e1b02046f6b99538 (patch) | |
tree | 10b86025a80dddbf84d0b95d809b92695205b0b5 /lib/leap_cli/commands | |
parent | 0d304e582d643893f5e139eb5126c793bc82ae6d (diff) |
leap_cli - make fog gem optional
Diffstat (limited to 'lib/leap_cli/commands')
-rw-r--r-- | lib/leap_cli/commands/vm.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/vm.rb b/lib/leap_cli/commands/vm.rb index 790774f1..6f97dbce 100644 --- a/lib/leap_cli/commands/vm.rb +++ b/lib/leap_cli/commands/vm.rb @@ -415,7 +415,6 @@ module LeapCli; module Commands config = manager.env.cloud name = nil if options[:mock] - Fog.mock! name = 'mock_aws' config['mock_aws'] = { "api" => "aws", @@ -451,6 +450,10 @@ module LeapCli; module Commands assert! entry['api'] == 'aws', "cloud.json: currently, only 'aws' is supported for `api`." assert! entry['vendor'] == 'aws', "cloud.json: currently, only 'aws' is supported for `vendor`." + LeapCli::Cloud::check_dependencies!(entry) + if options[:mock] + Fog.mock! + end return LeapCli::Cloud.new(name, entry, node) end |