Module: Dawn::CLI::Local
- Extended by:
- BaseCommands
- Defined in:
- lib/dawn/cli/commands/local.rb
Class Method Summary collapse
-
.health_check ⇒ Object
“verify if server is running”.
-
.whoami ⇒ Object
“print current username to console”.
Methods included from BaseCommands
command, handle_abort_exception
Methods included from Helpers
#current_app, #current_app_name, #extract_app_in_dir, #extract_app_remote_from_git_config, #git, #git_add_dawn_remote, #git_dawn_remote?, #git_remotes, #git_remove_dawn_remote, #has_git?, #try_create_app
Methods included from OutputFormatter
#format_apps, #format_domains, #format_drains, #format_gears, #format_keys, #format_releases, #table_style
Class Method Details
.health_check ⇒ Object
“verify if server is running”
11 12 13 14 |
# File 'lib/dawn/cli/commands/local.rb', line 11 def self.health_check Dawn::API.health_check say "All is well" end |
.whoami ⇒ Object
“print current username to console”
19 20 21 22 |
# File 'lib/dawn/cli/commands/local.rb', line 19 def self.whoami account = Dawn::Account.current say account.username end |