Sha256: c9b8742e55071c9ae99f21805a3404a8df45b4fc84378e74258ff40aee474577

Contents?: true

Size: 629 Bytes

Versions: 4

Compression:

Stored size: 629 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 Mybones < 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 Bones project #{project} with summary: #{summary}"

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
my_scripts-0.0.23 lib/my_scripts/mybones.rb
my_scripts-0.0.22 lib/my_scripts/mybones.rb
my_scripts-0.0.19 lib/my_scripts/mybones.rb
my_scripts-0.0.17 lib/my_scripts/mybones.rb