Sha256: 27ad9ec6e3ae8c0024b3f56cd60568a1a879544dfb0c19a7fcaabe6f32b935d3
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
require 'fileutils' module Codelog module Command class New include FileUtils def self.run Codelog::Command::New.new.run end def run chdir Dir.pwd do # This script create a change file for the changelog documentation. full_file_name = "changelogs/unreleased/#{Time.now.to_i}_change.yml" puts "== Creating #{full_file_name} change file based on example ==" system! "cp changelogs/template.yml #{full_file_name}" end end private def system!(*args) system(*args) || abort("\n== Command #{args} failed ==") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codelog-0.2.3 | lib/codelog/command/new.rb |
codelog-0.2.2 | lib/codelog/command/new.rb |