class Shanty::Shanty

Main shanty class

Constants

GEM_ROOT

This is the root directory where the Shanty gem is located. Do not confuse this with the root of the repository in which Shanty is operating, which is available via the TaskEnv class.

Public Instance Methods

start!() click to toggle source
# File lib/shanty.rb, line 24
def start!
  setup_i18n

  Cli.new(TaskEnv.new(Env.new)).run
end

Private Instance Methods

setup_i18n() click to toggle source
# File lib/shanty.rb, line 32
def setup_i18n
  I18n.enforce_available_locales = true
  I18n.load_path = Dir[File.join(GEM_ROOT, 'translations', '*.yml')]
end