mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-20 08:34:41 +01:00
24 lines
418 B
Ruby
24 lines
418 B
Ruby
require 'periodicity'
|
|
|
|
module Periodicity
|
|
class CLI
|
|
include Singleton
|
|
|
|
def run
|
|
load_rails
|
|
print_banner
|
|
end
|
|
|
|
def print_banner
|
|
puts "Loading Periodicity #{Periodicity::VERSION}"
|
|
puts "Running in #{RUBY_DESCRIPTION}"
|
|
end
|
|
|
|
def load_rails
|
|
require 'rails'
|
|
require File.expand_path("config/environment.rb")
|
|
::Rails.application.eager_load!
|
|
end
|
|
end
|
|
end
|