veeweeやpackerは使わずVirtualBoxとVagrantだけで作ってみます
参考: http://docs-v1.vagrantup.com/v1/docs/base_boxes.html
環境: VirtualBox 4.2.16 Vagrant 1.2.7
veeweeやpackerは使わずVirtualBoxとVagrantだけで作ってみます
参考: http://docs-v1.vagrantup.com/v1/docs/base_boxes.html
環境: VirtualBox 4.2.16 Vagrant 1.2.7
参考:
http://centossrv.com/postfix.shtml
メール関連パッケージインストール
$ apt-get install postfix dovecot-common dovecot-pop3d dovecot-imapd sasl2-bin
reportの作成方法やpageの作成方法はいくつも書き方があるので、 自分の使った書き方をメモ。
user_contents = { user_name: 'ユーザー名', user_address: '[email protected]' }
report = ThinReports::Report.create do |r|
# ユーザーページレイアウト
r.start_new_page :layout => File.join(Rails.root, 'app', 'reports', 'user.tlf') do |page|
def count_word( input )
words = Hash.new(0)
input_words = input.split(' ')
input_words.each do |word|
words[word] += 1
end