Module: Defoker
- Defined in:
- lib/defoker_dsl.rb,
lib/defoker_core.rb,
lib/date_base_name.rb,
lib/defoker/version.rb,
lib/defoker_dsl_model.rb
Defined Under Namespace
Classes: Core, DateBaseName, DateBaseNameValidators, Dsl, DslModel, DslNotExistError, InvalidRange
Constant Summary collapse
- DEFOKERFILE_PATH =
rubocop disable LineLength
'Defokerfile'- DEFOKERFILE_TEMPLATE =
"# type is required.\n# you can choose type from...\n# [:today | :tomorrow | :yesterday | :this_month | :next_month | :previous_month | :this_year | :previous_year | :next_month]\n# example\n# type :this_month\ntype :today\n\n# base is optional.\n# example\n# base 'ruby'\nbase ''\n\n# callback is ruby's callback(it will call after create folder).\n# Block parameter is foldername string.\n# If you want some action after create folder,\n# comment out following lines and edit your logic.\n\n# callback ->(dir) {\n# p dir\n# # create File in your dir\n# File.open(\"\\\#{dir}/some_template_file.txt\", \"w:utf-8\") { |e|e.puts 'some template'}\n# }\n"- VERSION =
'0.0.8'