Sha256: 809836686a200d8b3e1ddc781cd49422f32d8af25b9ac6845f0a44d389b67ba1

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

class Ey::Core::Cli::Logout < Ey::Core::Cli::Subcommand
  title "logout"
  summary "Remove your Engine Yard API token"

  def handle
    if core_yaml[core_url]
      core_yaml.delete(core_url)
      write_core_yaml
      puts "Successfully removed API token from credentials file".green
    else
      puts "No API token found".yellow
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ey-core-3.1.2 lib/ey-core/cli/logout.rb
ey-core-3.1.1 lib/ey-core/cli/logout.rb
ey-core-3.1.0 lib/ey-core/cli/logout.rb