Sha256: a3f752eb327d7ccd05fc88ca8d92da5f2960a5cea683f5ebaea623e5f5214986

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

# -*- encoding: utf-8 -*-

config = ""
config = '
module Charu
  class Config
    def initialize()
      # ホームページタイトル
      @home_title = "TestPage"

      # ホームページトップ
      @top_home_page = "http://hoge.com/hoge/index.html"

      # ホームページカテゴリー
      @home_category = ["Ruby", "Python", "Java"]

      # ホームページのdescription
      @home_description = "日々勉強中"

      # CSS Path
      @css_theme_path = "./css"

      # プライベートカテゴリー
      @Private_category = ["Private", "P", "★", "2ch"]

      # Change_Log_path
      @Change_Log_path = "./../Change_Log"

      # 一度に表示する記事数
      @article_size = 50

      # htmlの作成先
      @www_html_out_path = "./www/"

      # FTPの設定

    end
  end
end
'

# ディレクトリの確認
if Dir.exist?("./CharuConfig") == false then
  # ディレクトリの作成
  Dir.mkdir('CharuConfig')
end

if File.exist?("./CharuConfig/CharuConfig.rb") == false then
  File.open("./CharuConfig/CharuConfig.rb", "w:utf-8") do |f|
    f.puts(config)
  end
else
  require './CharuConfig/CharuConfig'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Charu-0.0.4 lib/Charu/Config.rb