mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-19 07:29:54 +02:00
Rename to Crono
This commit is contained in:
23
lib/crono/cli.rb
Normal file
23
lib/crono/cli.rb
Normal file
@@ -0,0 +1,23 @@
|
||||
require 'crono'
|
||||
|
||||
module Crono
|
||||
class CLI
|
||||
include Singleton
|
||||
|
||||
def run
|
||||
load_rails
|
||||
print_banner
|
||||
end
|
||||
|
||||
def print_banner
|
||||
puts "Loading Crono #{Crono::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
|
||||
Reference in New Issue
Block a user