5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RubyGem「defoker」で、来年の資料格納用・日付ディレクトリを自動生成

5
Last updated at Posted at 2014-10-06

「defoker」gemのインストール

$ gem install defoker

来年用の資料ディレクトリを作成

$ defoker months 201501 -c 12 -a 資料
  • コマンドの説明

months:月毎
201501:初めの月
-c 12:12ヶ月分
-a 資料:日付ディレクトリに「資料」を加える

出力結果

$ ls
201501_資料	201504_資料	201507_資料	201510_資料
201502_資料	201505_資料	201508_資料	201511_資料
201503_資料	201506_資料	201509_資料	201512_資料

参考リンク

他にもいろいろな機能があるようです。

Ruby | 日付フォルダ生成用 CLI ツール defoker gem に内部 DSL による定形出力ルール設定機能を追加 (ver 0.0.5) #ruby #defoker
http://qiita.com/tbpgr/items/f040429d1156fd100b64

GitHub:
https://github.com/tbpgr/defoker

RubyGems:
https://rubygems.org/gems/defoker

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?