Sha256: 6e873d592f8710f454eea2d7031c77fd3d784ce4c463ba7d82aec170aa3e4812

Contents?: true

Size: 792 Bytes

Versions: 1

Compression:

Stored size: 792 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
        nginx-for-unicorn.conf
      ].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.1 lib/source-tools/tasks/template.rb