Sha256: 33fe7b7dd92bd395e14f65665c2be1476a77932366b2446c86dce9b667df2379

Contents?: true

Size: 650 Bytes

Versions: 1

Compression:

Stored size: 650 Bytes

Contents

module MyScripts
  # This script uses Mr.Bones gem to create new project skeleton, local git repo and
  # initiate remote repo on github
  #
  class Bon < Script
    DEFAULT_SKELETON = 'basic'
    def run
      usage "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 Bones project #{name} with summary: #{summary}"

      system %Q[bones create --github "#{summary}" -s #{DEFAULT_SKELETON} #{name}]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
my_scripts-0.1.3 lib/my_scripts/scripts/bon.rb