Sha256: 2718748eb2fe670c0492f1a415b9dc005769b596cbad424ffe8b5710bd70633b

Contents?: true

Size: 681 Bytes

Versions: 6

Compression:

Stored size: 681 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
    def run
      usage "project_name Summary or description goes here" if @argv.empty?

      # First Arg should be project name
      project = @argv.shift

      # All the other args lumped into summary, or default summary
      summary = @argv.empty? ? "New project #{project}" : @argv.join(' ')

      puts "Creating Jeweler project #{project} with summary/description: #{summary}"

      system %Q[jeweler --rspec --cucumber --create-repo --summary "#{summary}" --description "#{summary}" #{project}]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
my_scripts-0.1.0 lib/my_scripts/scripts/jew.rb
my_scripts-0.0.24 lib/my_scripts/jew.rb
my_scripts-0.0.23 lib/my_scripts/jew.rb
my_scripts-0.0.22 lib/my_scripts/jew.rb
my_scripts-0.0.19 lib/my_scripts/jew.rb
my_scripts-0.0.17 lib/my_scripts/jew.rb