Sha256: e0ec46e70c9375a10ae107a95af9661edc1fe9d494ae5b10609a7a7bff6f0cd3
Contents?: true
Size: 831 Bytes
Versions: 7
Compression:
Stored size: 831 Bytes
Contents
module MyScripts # This script uses Jeweler to create new project skeleton, local git repo and # initiate remote repo on github # class Jew < Script VERSION = '0.1.0' def run usage "project_name Summary or description goes here" if @argv.empty? # First Arg should be project name name = @argv.shift # All the other args lumped into summary, or default summary summary = @argv.empty? ? "New project #{name}" : @argv.join(' ') puts "Creating Jeweler project #{name} with summary/description: #{summary}" success = system \ %Q[jeweler --rspec --cucumber --create-repo --summary "#{summary}" --description "#{summary}" #{name}] if success puts "Now you need to fix these files:" system "cd #{name} && git grep FIXME" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems