Sha256: 3a017ff21edc8bf942feaaebcfcede7e0576255df01f144a808aad23bb540e5c

Contents?: true

Size: 761 Bytes

Versions: 1

Compression:

Stored size: 761 Bytes

Contents

require 'source-tools'

namespace :st do
  namespace :t do
    desc 'create a Rakefile template for bones.'
    SourceTools.task_template('Rakefile', :project){ |args|
      args[:author] = `whoami`.chop
    }

    desc 'create a common .gitconfig file'
    SourceTools.task_template('.gitconfig', :project)

    desc 'create a user gem only .gemrc file'
    SourceTools.task_template('.gemrc', :project)

    desc 'create an nginx config file'
    SourceTools.task_template('config/nginx.conf', :project)

    %w[ .gitignore .vimrc .bashrc .config/fish/config.fish
        config/mime.types .git/hooks/post-receive .screenrc
      ].each{ |path|

      desc "create a common #{File.basename(path)} file"
      SourceTools.task_template(path)
    }

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
source-tools-0.6.0 lib/source-tools/tasks/template.rb