Last active
June 1, 2023 23:32
-
-
Save ryochin/d549366dfff61dd1f7e21745a999eb0c to your computer and use it in GitHub Desktop.
ruby: initial script template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem 'activesupport' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
class Main | |
require 'logger' | |
require 'optparse' | |
require 'active_support' | |
require 'active_support/core_ext' | |
def initialize | |
@params = ARGV.getopts('v') | |
# -v: verbose | |
@logger = Logger.new($stdout) | |
end | |
def run | |
@logger.debug 'run' | |
end | |
private | |
end | |
Main.new.run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment