Method: Flydata::Command::Base#show_purpose_name

Defined in:
lib/flydata/command/base.rb

#show_purpose_nameObject



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/flydata/command/base.rb', line 42

def show_purpose_name
  begin
    de = data_entry
    log_info_stdout("Your current application name is '#{de['purpose_name']}'")
  rescue RestClient::Unauthorized => e
    log_warn_stderr("This application is deleted.")
  rescue AgentInternalError => e
    case e.code
    when AgentInternalError::NO_DATA_ENTRY_ERR
      log_warn_stderr("#{e}")
    else
      raise e
    end
  end
end