Sha256: 5ba2a331eab6b4f76f4b02e61d9d4b154917f3c18ed6003d9230bd0bf9d37d34

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

# coding: UTF-8

require 'rake'

namespace :dad do
  
  desc '開発日記を実行します。'
  task :diary do
    system("bundle exec rake dad:cucumber features/開発日記")
  end
  
  namespace :diary do
    desc '本日用の開発日記を準備します。'
    task :new do
      today = Date.today.strftime('%Y-%m-%d')
  
      system("rake dad:cucumber:install")
  
      today = Date.today.strftime('%Y-%m-%d')
  
      feature = "features/開発日記/#{today}.feature"
      unless File.exist?(feature)
        system("echo '# language: ja'            >  #{feature}")
        system("echo                             >> #{feature}")
        system("echo '機能:'                         >> #{feature}")
        system("echo                             >> #{feature}")
      end
  
      step = "features/step_definitions/開発日記/#{today}.rb"
      unless File.exist?(step)
        system("echo '# coding: UTF-8'            >  #{step}")
        system("echo                              >> #{step}")
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
daddy-0.1.9 lib/tasks/diary.rake
daddy-0.1.8 lib/tasks/diary.rake
daddy-0.1.7 lib/tasks/diary.rake
daddy-0.1.6 lib/tasks/diary.rake
daddy-0.1.5 lib/tasks/diary.rake
daddy-0.1.4 lib/tasks/diary.rake
daddy-0.1.3 lib/tasks/diary.rake
daddy-0.1.2 lib/tasks/diary.rake
daddy-0.1.1 lib/tasks/diary.rake
daddy-0.1.0 lib/tasks/diary.rake
daddy-0.0.22 lib/tasks/diary.rake