Class: Rubyhub::Operations::Configuration::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyhub/operations/configuration/setup.rb

Constant Summary collapse

TEMPLATE_PATH =
'lib/rubyhub/config/templates/.rubyhub.yml'.freeze
CONFIG_EXISTS_MESSAGE =
'Config already exists!'.freeze
CONFIG_INSTALLED_MESSAGE =
'Config successfully installed!'.freeze

Class Method Summary collapse

Class Method Details

.callObject



12
13
14
15
16
17
# File 'lib/rubyhub/operations/configuration/setup.rb', line 12

def call
  return puts CONFIG_EXISTS_MESSAGE if Rubyhub::Configuration.exists?

  initialize_config
  puts CONFIG_INSTALLED_MESSAGE
end