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.6.0.autoscaling1 lib/ey-core/cli/logout.rb
ey-core-3.6.4 lib/ey-core/cli/logout.rb
ey-core-3.6.3 lib/ey-core/cli/logout.rb
ey-core-3.6.1 lib/ey-core/cli/logout.rb
groove-ey-core-3.6.3 lib/ey-core/cli/logout.rb
groove-ey-core-3.6.2 lib/ey-core/cli/logout.rb
groove-ey-core-3.6.1 lib/ey-core/cli/logout.rb
ey-core-3.5.0 lib/ey-core/cli/logout.rb
ey-core-3.4.4 lib/ey-core/cli/logout.rb
ey-core-3.4.2 lib/ey-core/cli/logout.rb
ey-core-3.4.1 lib/ey-core/cli/logout.rb
ey-core-3.4.0 lib/ey-core/cli/logout.rb
ey-core-3.3.1 lib/ey-core/cli/logout.rb
ey-core-3.3.0 lib/ey-core/cli/logout.rb
ey-core-3.2.6 lib/ey-core/cli/logout.rb
ey-core-3.2.5 lib/ey-core/cli/logout.rb
ey-core-3.2.4 lib/ey-core/cli/logout.rb
ey-core-3.2.3 lib/ey-core/cli/logout.rb
ey-core-3.2.2 lib/ey-core/cli/logout.rb
ey-core-3.2.1 lib/ey-core/cli/logout.rb