Sha256: 30b5256ba0951f354e2bde7924ead7110f3f17a63e193244ae493015d2e79e18

Contents?: true

Size: 492 Bytes

Versions: 30

Compression:

Stored size: 492 Bytes

Contents

require 'ey-core/cli/subcommand'

module Ey
  module Core
    module Cli
      class Logout < 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
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
ey-core-3.2.0 lib/ey-core/cli/logout.rb
ey-core-3.1.11 lib/ey-core/cli/logout.rb
ey-core-3.1.10 lib/ey-core/cli/logout.rb
ey-core-3.1.9 lib/ey-core/cli/logout.rb
ey-core-3.1.8 lib/ey-core/cli/logout.rb
ey-core-3.1.7 lib/ey-core/cli/logout.rb
ey-core-3.1.6 lib/ey-core/cli/logout.rb
ey-core-3.1.5 lib/ey-core/cli/logout.rb
ey-core-3.1.4 lib/ey-core/cli/logout.rb
ey-core-3.1.3 lib/ey-core/cli/logout.rb