Class: Shard::CLI::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/shard/cli/config.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject

# Class Methods #

#


13
14
15
# File 'lib/shard/cli/config.rb', line 13

def self.run
  new.run
end

Instance Method Details

#runObject

# Instance Methods #

#


23
24
25
26
27
28
29
# File 'lib/shard/cli/config.rb', line 23

def run
  if credentials_saved?
    replace_credentials
  else
    add_credentials
  end
end