lib/solusvm/cli/base_cli.rb in solusvm-1.4.0 vs lib/solusvm/cli/base_cli.rb in solusvm-2.0.0.beta1
- old
+ new
@@ -1,12 +1,12 @@
require 'yaml'
require 'thor'
require 'thor/group'
require 'solusvm/version'
-module Solusvm
- class BaseCli < Thor
+module SolusVM
+ class BaseCLI < Thor
include Thor::Actions
class << self
# Overrides the default banner implementation to output the whole command
def banner(task, namespace = true, subcommand = false)
@@ -70,9 +70,9 @@
url: present_or_exit(:api_url, :url, "api_url required")
}
end
def present_or_exit(options_key, default_option_key, message)
- options[options_key] || BaseCli.default_option(default_option_key) || (say(message) && raise(SystemExit))
+ options[options_key] || BaseCLI.default_option(default_option_key) || (say(message) && raise(SystemExit))
end
end
end